From a024c9b268c090ce3fdc72639dc5eeee38d4c73f Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 17 May 2022 11:05:16 +0200 Subject: [PATCH] docs(crypto): Add missing documentation. --- crates/matrix-sdk-crypto/src/js/machine.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/matrix-sdk-crypto/src/js/machine.rs b/crates/matrix-sdk-crypto/src/js/machine.rs index e494275e5..7b6626901 100644 --- a/crates/matrix-sdk-crypto/src/js/machine.rs +++ b/crates/matrix-sdk-crypto/src/js/machine.rs @@ -233,6 +233,11 @@ impl OlmMachine { future_to_promise(async move { Ok(me.invalidate_group_session(&room_id).await?) }) } + /// Get to-device requests to share a group session with users in a room. + /// + /// `room_id` is the room ID. `users` is an array of strings + /// representing user IDs. `encryption_settings` are an + /// `EncryptionSettings` object. #[wasm_bindgen(js_name = "shareGroupSession")] pub fn share_group_session( &self,