From 92b1458c4a28738514e7ababce614a19b0d5ed93 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Mon, 3 Dec 2018 20:11:24 +0800 Subject: [PATCH] Fix avatar changes. --- src/roomlistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/roomlistmodel.cpp b/src/roomlistmodel.cpp index b34cee7..6247f4b 100644 --- a/src/roomlistmodel.cpp +++ b/src/roomlistmodel.cpp @@ -70,6 +70,8 @@ void RoomListModel::connectRoomSignals(SpectralRoom* room) { [=] { unreadMessagesChanged(room); }); connect(room, &Room::notificationCountChanged, this, [=] { unreadMessagesChanged(room); }); + connect(room, &Room::avatarChanged, this, + [this, room] { refresh(room, {AvatarRole}); }); connect(room, &Room::tagsChanged, this, [=] { refresh(room); }); connect(room, &Room::joinStateChanged, this, [=] { refresh(room); }); connect(room, &Room::addedMessages, this,