From 390f1874d85f1446935158b5c8054a09474373eb Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 16 Oct 2024 12:56:54 +0100 Subject: [PATCH] fixup! crypto: new method `OlmMachine::try_decrypt_room_event` --- crates/matrix-sdk-crypto/src/machine/tests/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/matrix-sdk-crypto/src/machine/tests/mod.rs b/crates/matrix-sdk-crypto/src/machine/tests/mod.rs index d71f6f65722..21dabf2023a 100644 --- a/crates/matrix-sdk-crypto/src/machine/tests/mod.rs +++ b/crates/matrix-sdk-crypto/src/machine/tests/mod.rs @@ -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