Skip to content

Commit 38bbdf0

Browse files
committed
doc(event cache): tweak outdated comment
1 parent b188a15 commit 38bbdf0

File tree

1 file changed

+2
-2
lines changed
  • crates/matrix-sdk/src/event_cache/room

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,8 +1558,8 @@ mod private {
15581558
// so it only contains the last one; otherwise, there might be a
15591559
// valid gap in between, and observers may not render it (yet).
15601560
//
1561-
// We must do this *after* the above call to `.with_events_mut`, so the new
1562-
// events and gaps are properly persisted to storage.
1561+
// We must do this *after* persisting these events to storage (in
1562+
// `post_process_new_events`).
15631563
self.shrink_to_last_chunk().await?;
15641564
}
15651565

0 commit comments

Comments
 (0)