atagen

matrix-rust-sdk

public
Star0
Watch0

Commit 7f191fff1b10

tarball

atagen <boss@atagen.co>2026-10-25 10:49 UTC

1 file changed+4-2
timeline: describe what a history flush now publishes

The flush_history doc promised purely incremental updates, while the cache still sends a Reset when its loaded window stops extending what subscribers hold.
Modified file: crates/matrix-sdk-ui/src/timeline/mod.rs+4 additions−2 deletions
@@ -230,8 +230,10 @@ impl Timeline {
230230 /// Wait for earlier history operations on the room cache, then until this
231231 /// live timeline has applied every update they published.
232232 ///
233- /// Updates apply incrementally, keeping read receipts and item ids, and
234- /// only a lagged subscriber falls back to replacing the timeline.
233+ /// History commits arrive as inserts into the window the cache has loaded,
234+ /// keeping read receipts and item ids. The cache resets the timeline only
235+ /// when that window no longer extends what it already published, and a
236+ /// lagged subscriber falls back to replacing the timeline.
235237 pub async fn flush_history(&self) -> Result<(), Error> {
236238 let Some(flush) = &self.history_flush else {
237239 return Ok(());