summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-17 01:27:37 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-17 01:27:37 +0200
commit9fadd148715790743cb4e87bfe1854923e59c06b (patch)
tree2f3db93039106328338bd67eac8666b14b5fdaab /src/Cache.h
parentFix replies not reloading after fetching them (diff)
downloadnheko-9fadd148715790743cb4e87bfe1854923e59c06b.tar.xz
Store megolm session data in separate database
Diffstat (limited to 'src/Cache.h')
-rw-r--r--src/Cache.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Cache.h b/src/Cache.h

index b0520f6b..2b547876 100644 --- a/src/Cache.h +++ b/src/Cache.h
@@ -200,7 +200,7 @@ isRoomMember(const std::string &user_id, const std::string &room_id); // void saveOutboundMegolmSession(const std::string &room_id, - const OutboundGroupSessionData &data, + const GroupSessionData &data, mtx::crypto::OutboundGroupSessionPtr &session); OutboundGroupSessionDataRef getOutboundMegolmSession(const std::string &room_id); @@ -208,7 +208,7 @@ bool outboundMegolmSessionExists(const std::string &room_id) noexcept; void updateOutboundMegolmSession(const std::string &room_id, - const OutboundGroupSessionData &data, + const GroupSessionData &data, mtx::crypto::OutboundGroupSessionPtr &session); void dropOutboundMegolmSession(const std::string &room_id); @@ -223,7 +223,8 @@ exportSessionKeys(); // void saveInboundMegolmSession(const MegolmSessionIndex &index, - mtx::crypto::InboundGroupSessionPtr session); + mtx::crypto::InboundGroupSessionPtr session, + const GroupSessionData &data); mtx::crypto::InboundGroupSessionPtr getInboundMegolmSession(const MegolmSessionIndex &index); bool