diff --git a/crates/matrix-sdk/src/sliding_sync/list/mod.rs b/crates/matrix-sdk/src/sliding_sync/list/mod.rs index 7b9cb8204..082253550 100644 --- a/crates/matrix-sdk/src/sliding_sync/list/mod.rs +++ b/crates/matrix-sdk/src/sliding_sync/list/mod.rs @@ -149,7 +149,7 @@ impl SlidingSyncList { /// /// Remember to cancel the existing stream and fetch a new one as this will /// only be applied on the next request. - pub fn set_ranges(&self, range: Vec<(u32, u32)>) -> &Self { + pub fn ranges(&self, range: Vec<(u32, u32)>) -> &Self { let value = range.into_iter().map(|(a, b)| (a.into(), b.into())).collect(); Observable::set(&mut self.ranges.write().unwrap(), value);