summary refs log tree commit diff
path: root/src/encryption
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-23 01:40:10 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-23 01:40:10 +0200
commitd45dc6c77bc42f38048db33a5a7aceac1879c0b8 (patch)
tree74df0cb84098b950dfba2734945aea978a95a3e2 /src/encryption
parenthr tags are self closing (diff)
downloadnheko-d45dc6c77bc42f38048db33a5a7aceac1879c0b8.tar.xz
Migrate olm sessions to be stored in one database instead of thousands
Diffstat (limited to 'src/encryption')
-rw-r--r--src/encryption/Olm.cpp2
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,