diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs index 38d3bb980..388ccddf0 100644 --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -680,14 +680,14 @@ impl OlmMachine { ) -> OlmResult<()> { if let RoomKeyWithheldContent::MegolmV1AesSha2( MegolmV1AesSha2WithheldContent::BlackListed(c) - | MegolmV1AesSha2WithheldContent::Unverified(c) - ) = &event.content { - changes - .withheld_session_info - .entry(c.room_id.to_owned()) - .or_insert_with(BTreeMap::default) - .insert(c.session_id.to_owned(), event.to_owned()); - } + | MegolmV1AesSha2WithheldContent::Unverified(c), + ) = &event.content + { + changes + .withheld_session_info + .entry(c.room_id.to_owned()) + .or_insert_with(BTreeMap::default) + .insert(c.session_id.to_owned(), event.to_owned()); } Ok(())