We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set_sync_mode
1 parent 623ff6f commit 4ca8d61Copy full SHA for 4ca8d61
bindings/matrix-sdk-ffi/src/sliding_sync.rs
@@ -652,6 +652,16 @@ impl SlidingSyncList {
652
pub fn unset_timeline_limit(&self) {
653
self.inner.set_timeline_limit(None)
654
}
655
+
656
+ /// Changes the sync mode, and automatically restarts the sliding sync
657
+ /// internally.
658
+ pub fn set_sync_mode(
659
+ &self,
660
+ builder: Arc<SlidingSyncSelectiveModeBuilder>,
661
+ ) -> Result<(), ClientError> {
662
+ let builder = unwrap_or_clone_arc(builder);
663
+ self.inner.set_sync_mode(builder.inner).map_err(Into::into)
664
+ }
665
666
667
pub trait SlidingSyncObserver: Sync + Send {
0 commit comments