From dae2cbab90a0efdb17945c04d1f3c53f5a38c64f Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 22 Feb 2023 10:38:47 -0500 Subject: [PATCH] Refresh the notification count when unread stats change libquotient doesn't update the notification count properly, so let's listen on the unread stats changing instead. --- src/models/roomlistmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/roomlistmodel.cpp b/src/models/roomlistmodel.cpp index 6ccff64fb..cdb8d8244 100644 --- a/src/models/roomlistmodel.cpp +++ b/src/models/roomlistmodel.cpp @@ -200,7 +200,11 @@ void RoomListModel::connectRoomSignals(NeoChatRoom *room) } Q_EMIT newHighlight(room->id(), lastEvent->id(), room->displayName(), sender->displayname(), room->eventToString(*lastEvent), room->avatar(128)); }); +#ifndef QUOTIENT_07 connect(room, &Room::notificationCountChanged, this, &RoomListModel::refreshNotificationCount); +#else + connect(room, &Room::unreadStatsChanged, this, &RoomListModel::refreshNotificationCount); +#endif } #ifndef QUOTIENT_07