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); });
|
[=] { 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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue