Add missing arg to string format in user unblock error (#3279)

Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
Tal Neoran 2021-10-09 18:00:30 +03:00 committed by GitHub
parent 5861722c38
commit fa5a9fe831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,10 +434,11 @@ void UserInfoPopup::installEvents()
reenableBlockCheckbox();
},
[this, reenableBlockCheckbox] {
this->channel_->addMessage(
makeSystemMessage(QString(
this->channel_->addMessage(makeSystemMessage(
QString(
"User %1 couldn't be unblocked, an unknown "
"error occurred!")));
"error occurred!")
.arg(this->userName_)));
reenableBlockCheckbox();
});
}