summary refs log tree commit diff
path: root/src/Olm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Olm.h')
-rw-r--r--src/Olm.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Olm.h b/src/Olm.h

index 7b97039b..322affa1 100644 --- a/src/Olm.h +++ b/src/Olm.h
@@ -96,11 +96,9 @@ mark_keys_as_published(); //! Request the encryption keys from sender's device for the given event. void -request_keys(const std::string &room_id, const std::string &event_id); - -void -send_key_request_for(const std::string &room_id, - const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &); +send_key_request_for(mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> e, + const std::string &request_id, + bool cancel = false); void handle_key_request_message(const mtx::events::DeviceEvent<mtx::events::msg::KeyRequest> &); @@ -108,6 +106,13 @@ handle_key_request_message(const mtx::events::DeviceEvent<mtx::events::msg::KeyR void send_megolm_key_to_device(const std::string &user_id, const std::string &device_id, - const json &payload); + const mtx::events::msg::ForwardedRoomKey &payload); + +//! Send encrypted to device messages, targets is a map from userid to device ids or {} for all +//! devices +void +send_encrypted_to_device_messages(const std::map<std::string, std::vector<std::string>> targets, + const mtx::events::collections::DeviceEvents &event, + bool force_new_session = false); } // namespace olm