diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-07-19 12:22:54 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-07-19 12:22:54 +0200 |
commit | 6f2bc908badc207754ff55d543d41d9e2b847c97 (patch) | |
tree | 179012d3d482aa539462bf203651d3df04022df4 /src/timeline/EventStore.h | |
parent | Close cursor we don't need and where we overwrite the contents (diff) | |
download | nheko-6f2bc908badc207754ff55d543d41d9e2b847c97.tar.xz |
Fix reaction display
Diffstat (limited to 'src/timeline/EventStore.h')
-rw-r--r-- | src/timeline/EventStore.h | 5 |
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() |