summary refs log tree commit diff
path: root/src/timeline/RoomlistModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-07-14 01:26:48 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-07-14 01:26:48 +0200
commitaa63e50cea35926634f5c6af5598dd3950bee3d9 (patch)
tree6da789587167725b3e5cb54c90dc6a0db8aecaa2 /src/timeline/RoomlistModel.cpp
parentUse normal instead of recursive mutex (diff)
parentmake lint (diff)
downloadnheko-aa63e50cea35926634f5c6af5598dd3950bee3d9.tar.xz
Merge remote-tracking branch 'origin/perSpaceNotifs' into perSpaceNotifs
Diffstat (limited to 'src/timeline/RoomlistModel.cpp')
-rw-r--r--src/timeline/RoomlistModel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp

index 1cf16243..3b46c053 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp
@@ -330,10 +330,13 @@ RoomlistModel::addRoom(const QString &room_id, bool suppressInsertNotification) Qt::DisplayRole, }); + if (getRoomById(room_id)->isSpace()) + return; // no need to update space notifications + int total_unread_msgs = 0; for (const auto &room : qAsConst(models)) { - if (!room.isNull()) + if (!room.isNull() && !room->isSpace()) total_unread_msgs += room->notificationCount(); }