diff options
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r-- | src/ui/UserProfile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index ffb69aa4..c7254e23 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -281,9 +281,12 @@ UserProfile::setIgnored(bool ignore) if (ignore) { const QHash<QString, RoomInfo> invites = cache::invites(); + FilteredRoomlistModel *room_model = FilteredRoomlistModel::instance(); for (auto room = invites.keyBegin(), end = invites.keyEnd(); room != end; room++) { - FilteredRoomlistModel::instance()->declineInvite(*room); + if (room_model->getRoomPreviewById(*room).inviterUserId() == userid) { + room_model->declineInvite(*room); + } } } } |