diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-11-27 04:56:44 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-11-30 01:54:53 +0100 |
commit | 2290ebcf7810e842c73180d6591b2eaa553aec4b (patch) | |
tree | 592ef998553088b4411605a99c7c556378e22583 /src/Cache_p.h | |
parent | Load sessions lazily from db (diff) | |
download | nheko-2290ebcf7810e842c73180d6591b2eaa553aec4b.tar.xz |
Remove outbound session storage
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r-- | src/Cache_p.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h index f9562a65..f8c4ceaf 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -235,7 +235,8 @@ public: mtx::crypto::OutboundGroupSessionPtr session); OutboundGroupSessionDataRef getOutboundMegolmSession(const std::string &room_id); bool outboundMegolmSessionExists(const std::string &room_id) noexcept; - void updateOutboundMegolmSession(const std::string &room_id, int message_index); + void updateOutboundMegolmSession(const std::string &room_id, + mtx::crypto::OutboundGroupSessionPtr &session); void dropOutboundMegolmSession(const std::string &room_id); void importSessionKeys(const mtx::crypto::ExportedSessionKeys &keys); @@ -265,8 +266,6 @@ public: void saveOlmAccount(const std::string &pickled); std::string restoreOlmAccount(); - void restoreSessions(); - signals: void newReadReceipts(const QString &room_id, const std::vector<QString> &event_ids); void roomReadStatus(const std::map<QString, bool> &status); @@ -578,7 +577,6 @@ private: QString localUserId_; QString cacheDirectory_; - OlmSessionStorage session_storage; VerificationStorage verification_storage; }; |