Skip to content

Commit ec54819

Browse files
committed
fix: Address comments in OutboundGroupSession
1 parent 40d5379 commit ec54819

File tree

1 file changed

+2
-2
lines changed
  • crates/matrix-sdk-crypto/src/olm/group_sessions

1 file changed

+2
-2
lines changed

crates/matrix-sdk-crypto/src/olm/group_sessions/outbound.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ impl OutboundGroupSession {
468468
/// # Arguments
469469
///
470470
/// * `payload` - The plaintext content of the event that should be
471-
/// encrypted in raw JSON form.
471+
/// serialized to JSON and encrypted.
472472
///
473473
/// # Panics
474474
///
@@ -578,7 +578,7 @@ impl OutboundGroupSession {
578578
}
579579

580580
let payload = Payload { event_type, state_key, content, room_id: &self.room_id };
581-
self.encrypt_inner(&payload, None).await.cast_unchecked()
581+
self.encrypt_inner(&payload, None).await
582582
}
583583

584584
fn elapsed(&self) -> bool {

0 commit comments

Comments
 (0)