|
|
|
@ -369,6 +369,8 @@ create_inbound_megolm_session(const mtx::events::DeviceEvent<mtx::events::msg::R |
|
|
|
|
|
|
|
|
|
nhlog::crypto()->info( |
|
|
|
|
"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<mtx::events::msg::Encrypted> 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; |
|
|
|
|