summary refs log tree commit diff
path: root/src/timeline/TimelineModel.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-05-08 00:13:24 +0200
committerGitHub <noreply@github.com>2020-05-08 00:13:24 +0200
commit7beaf868efa500767451666e562b72a9968b6b59 (patch)
tree519d0de73e8c4fb8f8d01e0375b847a287927570 /src/timeline/TimelineModel.h
parentFix messages being immediately read again (diff)
parentRemove unused binding name (diff)
downloadnheko-7beaf868efa500767451666e562b72a9968b6b59.tar.xz
Merge pull request #192 from Nheko-Reborn/reactions
Reactions
Diffstat (limited to 'src/timeline/TimelineModel.h')
-rw-r--r--src/timeline/TimelineModel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h

index cc63eca2..a737aac7 100644 --- a/src/timeline/TimelineModel.h +++ b/src/timeline/TimelineModel.h
@@ -9,6 +9,7 @@ #include <mtxclient/http/errors.hpp> #include "CacheCryptoStructs.h" +#include "ReactionsModel.h" namespace mtx::http { using RequestErr = const std::optional<mtx::http::ClientError> &; @@ -29,6 +30,8 @@ enum EventType Unsupported, /// m.room_key_request KeyRequest, + /// m.reaction, + Reaction, /// m.room.aliases Aliases, /// m.room.avatar @@ -155,6 +158,7 @@ public: State, IsEncrypted, ReplyTo, + Reactions, RoomId, RoomName, RoomTopic, @@ -271,6 +275,7 @@ private: QSet<QString> read; QList<QString> pending; std::vector<QString> eventOrder; + std::map<QString, ReactionsModel> reactions; QString room_id_; QString prev_batch_token_;