Add read support for m.emote events (#41)
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);
|