Prepare for desktop notification.

This commit is contained in:
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); }); [=] { unreadMessagesChanged(room); });
connect(room, &QMatrixClient::Room::notificationCountChanged, this, connect(room, &QMatrixClient::Room::notificationCountChanged, this,
[=] { unreadMessagesChanged(room); }); [=] { unreadMessagesChanged(room); });
// connect(room, &QMatrixClient::Room::unreadMessagesChanged, this,
// &RoomListModel::highlightCountChanged);
connect(room, &QMatrixClient::Room::joinStateChanged, this, connect(room, &QMatrixClient::Room::joinStateChanged, this,
[=] { refresh(room); }); [=] { refresh(room); });
connect(room, &QMatrixClient::Room::avatarChanged, this, connect(room, &QMatrixClient::Room::avatarChanged, this,

View File

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