summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-02-10 14:12:49 +0100
committerGitHub <noreply@github.com>2021-02-10 14:12:49 +0100
commit4a5b5f992df713a6031f933d068436cf4e64513b (patch)
tree498c85cc1c5af39392ce8978e3a583384a10e3c9 /src/Cache.h
parentFix wrong font used in emoji escape (diff)
parentAbort -> Cancel (diff)
downloadnheko-4a5b5f992df713a6031f933d068436cf4e64513b.tar.xz
Merge pull request #420 from Nheko-Reborn/render-edits
Switch to new relations format and show edits
Diffstat (limited to 'src/Cache.h')
-rw-r--r--src/Cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Cache.h b/src/Cache.h

index 91956725..e60fc970 100644 --- a/src/Cache.h +++ b/src/Cache.h
@@ -168,6 +168,12 @@ using UserReceipts = std::multimap<uint64_t, std::string, std::greater<uint64_t> UserReceipts readReceipts(const QString &event_id, const QString &room_id); +//! get index of the event in the event db, not representing the visual index +std::optional<uint64_t> +getEventIndex(const std::string &room_id, std::string_view event_id); +std::optional<std::pair<uint64_t, std::string>> +lastInvisibleEventAfter(const std::string &room_id, std::string_view event_id); + QByteArray image(const QString &url); QByteArray