Remove some unused functions

This commit is contained in:
Nicolas Werner 2022-01-25 11:09:54 +01:00
parent 4a80fdc951
commit 573624a490
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 2 additions and 53 deletions

View file

@ -777,6 +777,8 @@ ChatPage::inviteUser(QString userid, QString reason)
userid.toStdString(),
[this, userid, room](const mtx::responses::Empty &, mtx::http::RequestErr err) {
if (err) {
nhlog::net()->error(
"Failed to invite {} to {}: {}", userid.toStdString(), room.toStdString(), *err);
emit showNotification(
tr("Failed to invite %1 to %2: %3")
.arg(userid, room, QString::fromStdString(err->matrix_error.error)));