Skip to content

Commit 003ff4c

Browse files
bnjbvrandybalaam
andauthored
Apply suggestions from code review
Co-authored-by: Andy Balaam <[email protected]> Signed-off-by: Benjamin Bouvier <[email protected]>
1 parent e217870 commit 003ff4c

File tree

1 file changed

+3
-3
lines changed
  • crates/matrix-sdk/src/event_cache

1 file changed

+3
-3
lines changed

crates/matrix-sdk/src/event_cache/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl RoomEventCacheInner {
475475
for raw_event in account_data {
476476
match raw_event.deserialize() {
477477
Ok(AnyRoomAccountDataEvent::FullyRead(ev)) => {
478-
// Propagate to observers. We ignore the fact there aren't any.
478+
// Propagate to observers. (We ignore the error if there aren't any.)
479479
let _ = self.sender.send(RoomEventCacheUpdate::UpdateReadMarker {
480480
event_id: ev.content.event_id,
481481
});
@@ -528,7 +528,7 @@ impl RoomEventCacheInner {
528528
// Clear internal state (events, pagination tokens, etc.).
529529
store.clear_room(self.room.room_id()).await?;
530530

531-
// Propagate to observers. We ignore the fact there aren't any.
531+
// Propagate to observers. (We ignore the error if there aren't any.)
532532
let _ = self.sender.send(RoomEventCacheUpdate::Clear);
533533
}
534534

@@ -745,7 +745,7 @@ pub enum RoomEventCacheUpdate {
745745

746746
/// The fully read marker has moved to a different event.
747747
UpdateReadMarker {
748-
/// Event at which the read marker has been moved.
748+
/// Event at which the read marker is now pointing.
749749
event_id: OwnedEventId,
750750
},
751751

0 commit comments

Comments
 (0)