diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-07-06 03:43:14 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-07-06 03:43:14 +0200 |
commit | 82eff09062c51a3136d169e97c70bbed2f439f26 (patch) | |
tree | 3c6c6b36e3c865c0f53cb7a4dbe7486ea67023b9 /src/Cache_p.h | |
parent | Use new timeline cache structure (diff) | |
download | nheko-82eff09062c51a3136d169e97c70bbed2f439f26.tar.xz |
Fetch event from db and use string_view where possible
Diffstat (limited to '')
-rw-r--r-- | src/Cache_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h index 37486ca0..10839967 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -259,6 +259,10 @@ private: int64_t index = std::numeric_limits<int64_t>::max(), bool forward = false); + std::optional<mtx::events::collections::TimelineEvent> getEvent( + const std::string &room_id, + const std::string &event_id); + //! Remove a room from the cache. // void removeLeftRoom(lmdb::txn &txn, const std::string &room_id); template<class T> |