From e537ece88d9c79bcdf26f05aaea16ff57799d26e Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 23 Oct 2020 16:09:56 +0200 Subject: [PATCH] Reload message on m.room_key --- src/Olm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Olm.cpp b/src/Olm.cpp index 8cc9bed8..6e68bd42 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp @@ -369,6 +369,8 @@ create_inbound_megolm_session(const mtx::events::DeviceEventinfo( "established inbound megolm session ({}, {})", roomKey.content.room_id, roomKey.sender); + + ChatPage::instance()->receivedSessionKey(index.room_id, index.session_id); } void @@ -417,8 +419,8 @@ send_key_request_for(mtx::events::EncryptedEvent e, e.content.session_id); mtx::events::msg::KeyRequest request; - request.action = !cancel ? mtx::events::msg::RequestAction::Request - : mtx::events::msg::RequestAction::Cancellation; + request.action = !cancel ? mtx::events::msg::RequestAction::Request + : mtx::events::msg::RequestAction::Cancellation; request.algorithm = MEGOLM_ALGO; request.room_id = e.room_id; request.sender_key = e.content.sender_key;