Prepare for desktop notification.
This commit is contained in:
parent
1ddfbddc74
commit
a3472e795c
|
@ -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,
|
||||
|
|
|
@ -51,6 +51,7 @@ class RoomListModel : public QAbstractListModel {
|
|||
|
||||
signals:
|
||||
void connectionChanged();
|
||||
void highlightCountChanged(QMatrixClient::Room* room);
|
||||
};
|
||||
|
||||
#endif // ROOMLISTMODEL_H
|
||||
|
|
Loading…
Reference in New Issue