diff options
author | NepNep21 <nepnep91@protonmail.com> | 2023-12-17 20:17:43 -0300 |
---|---|---|
committer | NepNep21 <nepnep91@protonmail.com> | 2023-12-17 20:17:43 -0300 |
commit | bfdf87a92dc6a5a18c38fc04af61d306d69ac03c (patch) | |
tree | 6fb629ed35596c88a5352d241e15b88508b4daa8 /src/ui/UserProfile.cpp | |
parent | Add /ignore (diff) | |
download | nheko-bfdf87a92dc6a5a18c38fc04af61d306d69ac03c.tar.xz |
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
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r-- | src/ui/UserProfile.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<QString, RoomInfo> invites = cache::invites(); + + for (auto room = invites.keyBegin(), end = invites.keyEnd(); room != end; room++) { + FilteredRoomlistModel::instance()->declineInvite(*room); + } + } } void |