diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-01 00:02:41 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-01 00:04:01 +0100 |
commit | fe49beb68ed7f582154d44c5af931a93c6b8e1bb (patch) | |
tree | 33662be93fd820174ebda99569414a7a81b0cd29 /src/Cache_p.h | |
parent | Fix crash on redactions without because (diff) | |
download | nheko-fe49beb68ed7f582154d44c5af931a93c6b8e1bb.tar.xz |
Hide me underneath the space tree
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r-- | src/Cache_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h index a48588e1..6a6b4e0c 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -95,6 +95,12 @@ public: auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY); return getStateEvent<T>(txn, room_id, state_key); } + template<typename T> + std::vector<mtx::events::StateEvent<T>> getStateEventsWithType(const std::string &room_id) + { + auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY); + return getStateEventsWithType<T>(txn, room_id); + } //! retrieve a specific event from account data //! pass empty room_id for global account data |