Skip to content

Commit

Permalink
fixup! crypto: new method OlmMachine::try_decrypt_room_event
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Oct 16, 2024
1 parent f27fdd8 commit 390f187
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/matrix-sdk-crypto/src/machine/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ async fn test_withheld_unverified() {
bob.try_decrypt_room_event(&room_event, room_id, &decryption_settings).await.unwrap();
assert_let!(RoomEventDecryptionResult::UnableToDecrypt(utd_info) = decrypt_result);
assert!(utd_info.session_id.is_some());
assert_eq!(utd_info.reason, UnableToDecryptReason::MissingMegolmSession);
}

/// Test what happens when we feed an unencrypted event into the decryption
Expand Down

0 comments on commit 390f187

Please sign in to comment.