From f3045dbf995f309b44fffa3bb67af30804e7ccab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 20 May 2022 08:32:50 +0200 Subject: [PATCH] fixup! refactor(crypto): Make it clear that the encrypt method is for room events --- crates/matrix-sdk-crypto/src/machine.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs index 7ce3e1eb6..ee2880d03 100644 --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -663,8 +663,9 @@ impl OlmMachine { /// Encrypt a json [`Value`] content for the given room. /// - /// This method is equivalent to the [`encrypt()`] method but operates on an - /// arbitrary JSON value instead of strongly-typed event content struct. + /// This method is equivalent to the [`OlmMachine::encrypt_room_event()`] + /// method but operates on an arbitrary JSON value instead of strongly-typed + /// event content struct. /// /// # Arguments /// @@ -679,8 +680,6 @@ impl OlmMachine { /// # Panics /// /// Panics if a group session for the given room wasn't shared beforehand. - /// - /// [`encrypt()`]: #method.encrypt pub async fn encrypt_room_event_raw( &self, room_id: &RoomId,