summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-06 18:53:31 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-06 18:53:31 +0300
commit146aaa87465765cd9d3153d95b0791c587902d62 (patch)
tree6850d0b1bb9de9c95f3b99d7b1a4e3f622f4e6f8 /src/ChatPage.cc
parentAvoid header conflict (second attempt) (diff)
downloadnheko-146aaa87465765cd9d3153d95b0791c587902d62.tar.xz
Display the most recent message instead of the topic
closes #11
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc5
1 files changed, 5 insertions, 0 deletions
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<MatrixClient> client, QWidget *parent)
 			room_list_->updateUnreadMessageCount(roomid, count);
 	});
 
+	connect(view_manager_,
+		&TimelineViewManager::updateRoomsLastMessage,
+		room_list_,
+		&RoomList::updateRoomDescription);
+
 	connect(room_list_,
 		SIGNAL(totalUnreadMessageCountUpdated(int)),
 		this,