Skip to content

Commit f89150d

Browse files
BillCarsonFrpoljar
authored andcommitted
review: quick doc improvements
1 parent b277708 commit f89150d

File tree

2 files changed

+2
-2
lines changed
  • crates
    • matrix-sdk-base/src/response_processors/e2ee
    • matrix-sdk-crypto/src/machine

2 files changed

+2
-2
lines changed

crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async fn process(
101101

102102
let events = events
103103
.iter()
104-
// XXX There is loss of information here, after calling `to_raw` it is not
104+
// TODO: There is loss of information here, after calling `to_raw` it is not
105105
// possible to make the difference between a successfully decrypted event and a plain
106106
// text event. This information needs to be propagated to top layer at some point if
107107
// clients relies on custom encrypted to device events.

crates/matrix-sdk-crypto/src/machine/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ impl OlmMachine {
14741474
.garbage_collect()
14751475
.iter()
14761476
// These are `fake` to device events just serving as local echo
1477-
// in order for own client to react quickly to cancelled transaction.
1477+
// in order that our own client can react quickly to cancelled transaction.
14781478
// Just use PlainText for that.
14791479
.map(|e| ProcessedToDeviceEvent::PlainText(e.clone()))
14801480
.collect();

0 commit comments

Comments
 (0)