summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorAkhil Nair <targetakhil@gmail.com>2021-02-14 00:04:27 -0500
committerGitHub <noreply@github.com>2021-02-14 00:04:27 -0500
commit84005404289da6c2be9f524b7b8c70a1be7ad565 (patch)
tree1de2d0fd5fb1aab4c5ea4604567edb0844ed3b26 /src/Cache.h
parentreplaced with togglebutton using qtquickcontrols2 (diff)
parentAdd double tap to reply feature (diff)
downloadnheko-84005404289da6c2be9f524b7b8c70a1be7ad565.tar.xz
Merge branch 'master' into room_settings_qml
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