diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-01-27 02:45:33 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-09 20:22:02 +0100 |
commit | d6504812c71ff7251a5319113c580ab322469eb3 (patch) | |
tree | 24779b1c76ea9d6555130347781dee6a9d8c133c /src/timeline/EventStore.h | |
parent | Switch to new relations format (diff) | |
download | nheko-d6504812c71ff7251a5319113c580ab322469eb3.tar.xz |
Render edits
Diffstat (limited to 'src/timeline/EventStore.h')
-rw-r--r-- | src/timeline/EventStore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeline/EventStore.h b/src/timeline/EventStore.h index f8eff9a9..ced7bdc0 100644 --- a/src/timeline/EventStore.h +++ b/src/timeline/EventStore.h @@ -66,7 +66,8 @@ public: // relatedFetched event mtx::events::collections::TimelineEvents *get(std::string_view id, std::string_view related_to, - bool decrypt = true); + bool decrypt = true, + bool resolve_edits = true); // always returns a proper event as long as the idx is valid mtx::events::collections::TimelineEvents *get(int idx, bool decrypt = true); @@ -110,6 +111,7 @@ public slots: void clearTimeline(); private: + std::vector<mtx::events::collections::TimelineEvents> edits(const std::string &event_id); mtx::events::collections::TimelineEvents *decryptEvent( const IdIndex &idx, const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &e); |