mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-16 20:49:05 -04:00
fixup! refactor(crypto): Make it clear that the encrypt method is for room events
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user