Basic sticker support

This commit is contained in:
Nicolas Werner 2021-07-15 20:37:52 +02:00
parent 1dc20f9164
commit 8a1666bc88
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
17 changed files with 419 additions and 37 deletions

View file

@ -3382,6 +3382,13 @@ Cache::getChildRoomIds(const std::string &room_id)
return roomids;
}
std::optional<mtx::events::collections::RoomAccountDataEvents>
Cache::getAccountData(mtx::events::EventType type, const std::string &room_id)
{
auto txn = ro_txn(env_);
return getAccountData(txn, type, room_id);
}
std::optional<mtx::events::collections::RoomAccountDataEvents>
Cache::getAccountData(lmdb::txn &txn, mtx::events::EventType type, const std::string &room_id)
{