From fe49beb68ed7f582154d44c5af931a93c6b8e1bb Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 1 Dec 2021 00:02:41 +0100 Subject: Hide me underneath the space tree --- src/Cache_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Cache_p.h') 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(txn, room_id, state_key); } + template + std::vector> getStateEventsWithType(const std::string &room_id) + { + auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY); + return getStateEventsWithType(txn, room_id); + } //! retrieve a specific event from account data //! pass empty room_id for global account data -- cgit 1.5.1