File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/matrix-sdk/src/sliding_sync Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ let list_builder = SlidingSyncList::builder("main_list")
77
77
v4 :: SyncRequestListFilters :: default (), { is_dm : Some (true )}
78
78
)))
79
79
. sort (vec! [" by_recency" . to_owned ()])
80
- . set_range (0u32 ..= 9 );
80
+ . add_range (0u32 ..= 9 );
81
81
```
82
82
83
83
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)
425
425
426
426
let active_list = SlidingSyncList::builder(&active_list_name) // the active window
427
427
.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
429
429
.sort(vec!["by_recency".to_owned()]) // last active
430
430
.timeline_limit(5u32) // add the last 5 timeline items for room preview and faster timeline loading
431
431
.required_state(vec![ // we want to know immediately:
You can’t perform that action at this time.
0 commit comments