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.
expire_sessions
1 parent c6a25e9 commit 8c7c25bCopy full SHA for 8c7c25b
bindings/matrix-sdk-ffi/src/sync_service.rs
@@ -90,6 +90,15 @@ impl SyncService {
90
}
91
})))
92
93
+
94
+ /// Force expiring both sliding sync sessions.
95
+ ///
96
+ /// This ensures that the sync service is stopped before expiring both
97
+ /// sessions. It should be used sparingly, as it will cause a restart of
98
+ /// the sessions on the server as well.
99
+ pub async fn expire_sessions(&self) {
100
+ self.inner.expire_sessions().await;
101
+ }
102
103
104
#[derive(Clone, uniffi::Object)]
0 commit comments