diff --git a/crates/matrix-sdk-crypto/CHANGELOG.md b/crates/matrix-sdk-crypto/CHANGELOG.md index 6ce1ebc515e..b79a354c4e3 100644 --- a/crates/matrix-sdk-crypto/CHANGELOG.md +++ b/crates/matrix-sdk-crypto/CHANGELOG.md @@ -2,6 +2,9 @@ Changes: +- Log the content of received `m.room_key.withheld` to-device events. + ([#3591](https://github.com/matrix-org/matrix-rust-sdk/pull/3591)) + - Attempt to decrypt bundled events (reactions and the latest thread reply) if they are found in the unsigned part of an event. ([#3468](https://github.com/matrix-org/matrix-rust-sdk/pull/3468)) @@ -108,7 +111,7 @@ Additions: ([#3194](https://github.com/matrix-org/matrix-rust-sdk/pull/3194)) -## 0.7.1 +## 0.7.1 Security fixes: diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs index 18c44130926..e7a2616546a 100644 --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -867,6 +867,8 @@ impl OlmMachine { } fn add_withheld_info(&self, changes: &mut Changes, event: &RoomKeyWithheldEvent) { + debug!(?event.content, "Processing `m.room_key.withheld` event"); + if let RoomKeyWithheldContent::MegolmV1AesSha2( MegolmV1AesSha2WithheldContent::BlackListed(c) | MegolmV1AesSha2WithheldContent::Unverified(c),