summary refs log tree commit diff
path: root/include/TimelineView.h
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 /include/TimelineView.h
parentAvoid header conflict (second attempt) (diff)
downloadnheko-146aaa87465765cd9d3153d95b0791c587902d62.tar.xz
Display the most recent message instead of the topic
closes #11
Diffstat (limited to 'include/TimelineView.h')
-rw-r--r--include/TimelineView.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/TimelineView.h b/include/TimelineView.h

index f1860dbe..628b3e0d 100644 --- a/include/TimelineView.h +++ b/include/TimelineView.h
@@ -29,6 +29,7 @@ #include "Image.h" #include "Notice.h" +#include "RoomInfoListItem.h" #include "Text.h" namespace msgs = matrix::events::messages; @@ -83,11 +84,15 @@ public slots: // Add old events at the top of the timeline. void addBackwardsEvents(const QString &room_id, const RoomMessages &msgs); +signals: + void updateLastTimelineMessage(const QString &user, const DescInfo &info); + private: void init(); void removePendingMessage(const events::MessageEvent<msgs::Text> &e); void addTimelineItem(TimelineItem *item, TimelineDirection direction); void updateLastSender(const QString &user_id, TimelineDirection direction); + void notifyForLastEvent(); // Used to determine whether or not we should prefix a message with the sender's name. bool isSenderRendered(const QString &user_id, TimelineDirection direction);