diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-23 01:40:10 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-23 01:40:10 +0200 |
commit | d45dc6c77bc42f38048db33a5a7aceac1879c0b8 (patch) | |
tree | 74df0cb84098b950dfba2734945aea978a95a3e2 /src/encryption | |
parent | 724e38e67389a5c0047abc3a68663c44f2ad35a5 (diff) |
Migrate olm sessions to be stored in one database instead of thousands
Diffstat (limited to 'src/encryption')
-rw-r--r-- | src/encryption/Olm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp index 8993f715..7fa176b0 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp @@ -719,7 +719,7 @@ try_olm_decryption(const std::string &sender_key, const mtx::events::msg::OlmCip nhlog::crypto()->debug("Updated olm session: {}", mtx::crypto::session_id(session->get())); cache::saveOlmSession( - id, std::move(session.value()), QDateTime::currentMSecsSinceEpoch()); + sender_key, std::move(session.value()), QDateTime::currentMSecsSinceEpoch()); } catch (const mtx::crypto::olm_exception &e) { nhlog::crypto()->debug("failed to decrypt olm message ({}, {}) with {}: {}", msg.type, |