summary refs log tree commit diff
path: root/src/Cache_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r--src/Cache_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h

index cd42fa3e..839688f1 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h
@@ -169,6 +169,7 @@ public: //! Calculates which the read status of a room. //! Whether all the events in the timeline have been read. + std::string getFullyReadEventId(const std::string &room_id); bool calculateRoomReadStatus(const std::string &room_id); void calculateRoomReadStatus(); @@ -212,6 +213,8 @@ public: 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); + std::optional<std::pair<uint64_t, std::string>> + lastVisibleEvent(const std::string &room_id, std::string_view event_id); std::optional<std::string> getTimelineEventId(const std::string &room_id, uint64_t index); std::optional<uint64_t> getArrivalIndex(const std::string &room_id, std::string_view event_id);