Upgrade libqmatrixclient && tweak room list model.
This commit is contained in:
Submodule include/libqmatrixclient updated: f3a251404c...f004c32ae4
@@ -25,7 +25,7 @@ void RoomListModel::setConnection(QMatrixClient::Connection* connection) {
|
||||
connect(connection, &QMatrixClient::Connection::aboutToDeleteRoom, this,
|
||||
&RoomListModel::deleteRoom);
|
||||
|
||||
doResetModel();
|
||||
if (!connection->accessToken().isEmpty()) doResetModel();
|
||||
}
|
||||
|
||||
void RoomListModel::doResetModel() {
|
||||
@@ -54,8 +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::unreadMessagesChanged, this,
|
||||
// &RoomListModel::highlightCountChanged);
|
||||
connect(room, &QMatrixClient::Room::joinStateChanged, this,
|
||||
[=] { refresh(room); });
|
||||
connect(room, &QMatrixClient::Room::avatarChanged, this,
|
||||
|
||||
Reference in New Issue
Block a user