From d45dc6c77bc42f38048db33a5a7aceac1879c0b8 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 23 Oct 2023 01:40:10 +0200 Subject: Migrate olm sessions to be stored in one database instead of thousands --- src/encryption/Olm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encryption') 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, -- cgit 1.5.1