summary refs log tree commit diff
path: root/src/timeline/EventStore.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-19 12:22:54 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-19 12:22:54 +0200
commit6f2bc908badc207754ff55d543d41d9e2b847c97 (patch)
tree179012d3d482aa539462bf203651d3df04022df4 /src/timeline/EventStore.h
parentClose cursor we don't need and where we overwrite the contents (diff)
downloadnheko-6f2bc908badc207754ff55d543d41d9e2b847c97.tar.xz
Fix reaction display
Diffstat (limited to 'src/timeline/EventStore.h')
-rw-r--r--src/timeline/EventStore.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timeline/EventStore.h b/src/timeline/EventStore.h
index 3a78cba8..5a792040 100644
--- a/src/timeline/EventStore.h
+++ b/src/timeline/EventStore.h
@@ -5,12 +5,15 @@
 
 #include <QCache>
 #include <QObject>
+#include <QVariant>
 #include <qhashfunctions.h>
 
 #include <mtx/events/collections.hpp>
 #include <mtx/responses/messages.hpp>
 #include <mtx/responses/sync.hpp>
 
+#include "Reaction.h"
+
 class EventStore : public QObject
 {
         Q_OBJECT
@@ -65,6 +68,8 @@ public:
         // always returns a proper event as long as the idx is valid
         mtx::events::collections::TimelineEvents *event(int idx, bool decrypt = true);
 
+        QVariantList reactions(const std::string &event_id);
+
         int size() const
         {
                 return last != std::numeric_limits<uint64_t>::max()