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

index 1545f7e8..7ea659ec 100644 --- a/src/Cache.h +++ b/src/Cache.h
@@ -152,6 +152,8 @@ 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); RoomInfo singleRoomInfo(const std::string &room_id); @@ -160,6 +162,8 @@ getRoomInfo(const std::vector<std::string> &rooms); //! 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