From bfdf87a92dc6a5a18c38fc04af61d306d69ac03c Mon Sep 17 00:00:00 2001 From: NepNep21 Date: Sun, 17 Dec 2023 20:17:43 -0300 Subject: Multiple changes More consistent language with similar description strings Add manpage entry Add /unignore Add ignore & decline button in the invite page Add invite rejection to all ignore methods --- src/ui/UserProfile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui') diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 5c63deb2..ffb69aa4 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -278,6 +278,14 @@ UserProfile::setIgnored(bool ignore) .arg(userid, QString::fromStdString(e->matrix_error.error))); } }); + + if (ignore) { + const QHash invites = cache::invites(); + + for (auto room = invites.keyBegin(), end = invites.keyEnd(); room != end; room++) { + FilteredRoomlistModel::instance()->declineInvite(*room); + } + } } void -- cgit 1.5.1