From f89150d3eeefbc7f40882855f48e2fa6d7f773cc Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 18 Apr 2025 14:33:55 +0200 Subject: [PATCH] review: quick doc improvements --- .../matrix-sdk-base/src/response_processors/e2ee/to_device.rs | 2 +- crates/matrix-sdk-crypto/src/machine/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs b/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs index f1f0b2ed0..6b7afb236 100644 --- a/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs +++ b/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs @@ -101,7 +101,7 @@ async fn process( let events = events .iter() - // XXX There is loss of information here, after calling `to_raw` it is not + // TODO: There is loss of information here, after calling `to_raw` it is not // possible to make the difference between a successfully decrypted event and a plain // text event. This information needs to be propagated to top layer at some point if // clients relies on custom encrypted to device events. diff --git a/crates/matrix-sdk-crypto/src/machine/mod.rs b/crates/matrix-sdk-crypto/src/machine/mod.rs index 6e786a5ba..d162dfd38 100644 --- a/crates/matrix-sdk-crypto/src/machine/mod.rs +++ b/crates/matrix-sdk-crypto/src/machine/mod.rs @@ -1474,7 +1474,7 @@ impl OlmMachine { .garbage_collect() .iter() // These are `fake` to device events just serving as local echo - // in order for own client to react quickly to cancelled transaction. + // in order that our own client can react quickly to cancelled transaction. // Just use PlainText for that. .map(|e| ProcessedToDeviceEvent::PlainText(e.clone())) .collect();