From d13c00bb2099475cf3d133153a4b2b4d1e1f1ff7 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 9 Nov 2022 21:53:24 +0100 Subject: [PATCH] Update room list subtitle when sending message --- src/roomlistmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roomlistmodel.cpp b/src/roomlistmodel.cpp index 07e7b5e0a..d936f3276 100644 --- a/src/roomlistmodel.cpp +++ b/src/roomlistmodel.cpp @@ -172,6 +172,9 @@ void RoomListModel::connectRoomSignals(NeoChatRoom *room) connect(room, &Room::addedMessages, this, [this, room] { refresh(room, {LastEventRole, SubtitleTextRole}); }); + connect(room, &Room::pendingEventMerged, this, [this, room] { + refresh(room, {LastEventRole, SubtitleTextRole}); + }); #ifndef QUOTIENT_07 connect(room, &Room::notificationCountChanged, this, &RoomListModel::handleNotifications); #endif