diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-19 03:02:30 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-19 03:02:30 +0200 |
commit | 9d5ba4f681901a0ee241e542fa9be5e2b73f58db (patch) | |
tree | 49db2b8700d72265d5e0e2d4ff18cd037f320c36 /src/Cache_p.h | |
parent | Basic sticker support (diff) | |
download | nheko-9d5ba4f681901a0ee241e542fa9be5e2b73f58db.tar.xz |
Move sticker parsing and enable room stickers
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r-- | src/Cache_p.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h index 3752f5e4..13fbc371 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -88,12 +88,6 @@ public: //! Retrieve if the room is a space bool getRoomIsSpace(lmdb::txn &txn, lmdb::dbi &statesdb); - //! retrieve a specific event from account data - //! pass empty room_id for global account data - std::optional<mtx::events::collections::RoomAccountDataEvents> getAccountData( - mtx::events::EventType type, - const std::string &room_id = ""); - //! Get a specific state event template<typename T> std::optional<mtx::events::StateEvent<T>> getStateEvent(const std::string &room_id, @@ -231,6 +225,8 @@ public: std::vector<std::string> getParentRoomIds(const std::string &room_id); std::vector<std::string> getChildRoomIds(const std::string &room_id); + std::vector<ImagePackInfo> getImagePacks(const std::string &room_id, bool stickers); + //! Mark a room that uses e2e encryption. void setEncryptedRoom(lmdb::txn &txn, const std::string &room_id); bool isRoomEncrypted(const std::string &room_id); |