summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-02 16:47:59 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-02 16:47:59 +0300
commita44a4f36af67c016e207b1cbd63817c6751ed89d (patch)
tree13a8cbee8ae04b081fcbc4999a4e9efe8d9a0ffe /include
parentLinkify URLs in room topics (diff)
downloadnheko-a44a4f36af67c016e207b1cbd63817c6751ed89d.tar.xz
Add read support for m.emote events (#41)
Diffstat (limited to 'include')
-rw-r--r--include/TimelineItem.h4
-rw-r--r--include/TimelineView.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/TimelineItem.h b/include/TimelineItem.h

index df43c26d..59c79d50 100644 --- a/include/TimelineItem.h +++ b/include/TimelineItem.h
@@ -25,6 +25,7 @@ #include "Sync.h" #include "Avatar.h" +#include "Emote.h" #include "Image.h" #include "MessageEvent.h" #include "Notice.h" @@ -44,6 +45,9 @@ public: TimelineItem(const events::MessageEvent<msgs::Text> &e, bool with_sender, QWidget *parent = 0); + TimelineItem(const events::MessageEvent<msgs::Emote> &e, + bool with_sender, + QWidget *parent = 0); // For local messages. TimelineItem(const QString &userid, QString body, QWidget *parent = 0); diff --git a/include/TimelineView.h b/include/TimelineView.h
index c6eef266..7583e4c2 100644 --- a/include/TimelineView.h +++ b/include/TimelineView.h
@@ -28,6 +28,7 @@ #include "TimelineItem.h" #include "Image.h" +#include "Emote.h" #include "Notice.h" #include "RoomInfoListItem.h" #include "Text.h" @@ -77,6 +78,8 @@ public: bool with_sender); TimelineItem *createTimelineItem(const events::MessageEvent<msgs::Text> &e, bool with_sender); + TimelineItem *createTimelineItem(const events::MessageEvent<msgs::Emote> &e, + bool with_sender); // Add new events at the end of the timeline. int addEvents(const Timeline &timeline);