summary refs log tree commit diff
path: root/src/TimelineViewManager.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/TimelineViewManager.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/TimelineViewManager.cc')
-rw-r--r--src/TimelineViewManager.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/TimelineViewManager.cc b/src/TimelineViewManager.cc

index 3715d1b6..455335f7 100644 --- a/src/TimelineViewManager.cc +++ b/src/TimelineViewManager.cc
@@ -80,6 +80,11 @@ void TimelineViewManager::initialize(const Rooms &rooms) TimelineView *view = new TimelineView(it.value().timeline(), client_, it.key()); views_.insert(it.key(), QSharedPointer<TimelineView>(view)); + connect(view, + &TimelineView::updateLastTimelineMessage, + this, + &TimelineViewManager::updateRoomsLastMessage); + // Add the view in the widget stack. addWidget(view); } @@ -92,6 +97,11 @@ void TimelineViewManager::initialize(const QList<QString> &rooms) TimelineView *view = new TimelineView(client_, roomid); views_.insert(roomid, QSharedPointer<TimelineView>(view)); + connect(view, + &TimelineView::updateLastTimelineMessage, + this, + &TimelineViewManager::updateRoomsLastMessage); + // Add the view in the widget stack. addWidget(view); }