Skip to content

Commit 631b51f

Browse files
committed
chore: update sliding sync's README.md too
Signed-off-by: Benjamin Bouvier <public@benj.me>
1 parent 829eb30 commit 631b51f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/matrix-sdk/src/sliding_sync/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ let list_builder = SlidingSyncList::builder("main_list")
7777
v4::SyncRequestListFilters::default(), { is_dm: Some(true)}
7878
)))
7979
.sort(vec!["by_recency".to_owned()])
80-
.set_range(0u32..=9);
80+
.add_range(0u32..=9);
8181
```
8282

8383
Please refer to the [specification][MSC], the [Ruma types][ruma-types],
@@ -425,7 +425,7 @@ let full_sync_list = SlidingSyncList::builder(&full_sync_list_name)
425425
426426
let active_list = SlidingSyncList::builder(&active_list_name) // the active window
427427
.sync_mode(SlidingSyncMode::Selective) // sync up the specific range only
428-
.set_range(0u32..=9) // only the top 10 items
428+
.add_range(0u32..=9) // only the top 10 items
429429
.sort(vec!["by_recency".to_owned()]) // last active
430430
.timeline_limit(5u32) // add the last 5 timeline items for room preview and faster timeline loading
431431
.required_state(vec![ // we want to know immediately:

0 commit comments

Comments
 (0)