diff --git a/src/roomlistmodel.cpp b/src/roomlistmodel.cpp index 29134ad..6dbbe51 100644 --- a/src/roomlistmodel.cpp +++ b/src/roomlistmodel.cpp @@ -54,6 +54,8 @@ void RoomListModel::connectRoomSignals(QMatrixClient::Room* room) { [=] { unreadMessagesChanged(room); }); connect(room, &QMatrixClient::Room::notificationCountChanged, this, [=] { unreadMessagesChanged(room); }); +// connect(room, &QMatrixClient::Room::unreadMessagesChanged, this, +// &RoomListModel::highlightCountChanged); connect(room, &QMatrixClient::Room::joinStateChanged, this, [=] { refresh(room); }); connect(room, &QMatrixClient::Room::avatarChanged, this, diff --git a/src/roomlistmodel.h b/src/roomlistmodel.h index 4d87348..2667450 100644 --- a/src/roomlistmodel.h +++ b/src/roomlistmodel.h @@ -51,6 +51,7 @@ class RoomListModel : public QAbstractListModel { signals: void connectionChanged(); + void highlightCountChanged(QMatrixClient::Room* room); }; #endif // ROOMLISTMODEL_H