From 4185b8d1217d7e298256d9bc1bee6188f5ab208d Mon Sep 17 00:00:00 2001 From: redsky17 Date: Fri, 25 Jan 2019 02:43:54 +0000 Subject: Add unread notification color for user mentioned When user is mentioned (via matrix 'highlight_count'), inactive rooms will use a different color for the notification circle than when only general unread messages exist. --- src/RoomList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RoomList.cpp') diff --git a/src/RoomList.cpp b/src/RoomList.cpp index c1b080c0..1abf3533 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp @@ -143,7 +143,7 @@ RoomList::removeRoom(const QString &room_id, bool reset) } void -RoomList::updateUnreadMessageCount(const QString &roomid, int count) +RoomList::updateUnreadMessageCount(const QString &roomid, int count, int highlightedCount) { if (!roomExists(roomid)) { nhlog::ui()->warn("updateUnreadMessageCount: unknown room_id {}", @@ -151,7 +151,7 @@ RoomList::updateUnreadMessageCount(const QString &roomid, int count) return; } - rooms_[roomid]->updateUnreadMessageCount(count); + rooms_[roomid]->updateUnreadMessageCount(count, highlightedCount); calculateUnreadMessageCount(); } -- cgit 1.5.1