Prepare for desktop notification.

square-messages
Black Hat 2018-07-18 22:52:48 +08:00
parent 1ddfbddc74
commit a3472e795c
2 changed files with 3 additions and 0 deletions

View File

@ -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,

View File

@ -51,6 +51,7 @@ class RoomListModel : public QAbstractListModel {
signals:
void connectionChanged();
void highlightCountChanged(QMatrixClient::Room* room);
};
#endif // ROOMLISTMODEL_H