From 146aaa87465765cd9d3153d95b0791c587902d62 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 6 Aug 2017 18:53:31 +0300 Subject: Display the most recent message instead of the topic closes #11 --- src/ChatPage.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ChatPage.cc') diff --git a/src/ChatPage.cc b/src/ChatPage.cc index 5862e559..9f20d54f 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -138,6 +138,11 @@ ChatPage::ChatPage(QSharedPointer client, QWidget *parent) room_list_->updateUnreadMessageCount(roomid, count); }); + connect(view_manager_, + &TimelineViewManager::updateRoomsLastMessage, + room_list_, + &RoomList::updateRoomDescription); + connect(room_list_, SIGNAL(totalUnreadMessageCountUpdated(int)), this, -- cgit 1.5.1