From 38bbdf054786ab5538b0ea767e37eabcb7ccc8c6 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 1 Jul 2025 17:13:01 +0200 Subject: [PATCH] doc(event cache): tweak outdated comment --- crates/matrix-sdk/src/event_cache/room/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/event_cache/room/mod.rs b/crates/matrix-sdk/src/event_cache/room/mod.rs index f10d83020..c23b986c1 100644 --- a/crates/matrix-sdk/src/event_cache/room/mod.rs +++ b/crates/matrix-sdk/src/event_cache/room/mod.rs @@ -1558,8 +1558,8 @@ mod private { // so it only contains the last one; otherwise, there might be a // valid gap in between, and observers may not render it (yet). // - // We must do this *after* the above call to `.with_events_mut`, so the new - // events and gaps are properly persisted to storage. + // We must do this *after* persisting these events to storage (in + // `post_process_new_events`). self.shrink_to_last_chunk().await?; }