Skip to content

Commit 8c7c25b

Browse files
committed
chore(ffi): expose sliding sync's expire_sessions method
1 parent c6a25e9 commit 8c7c25b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bindings/matrix-sdk-ffi/src/sync_service.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ impl SyncService {
9090
}
9191
})))
9292
}
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+
}
93102
}
94103

95104
#[derive(Clone, uniffi::Object)]

0 commit comments

Comments
 (0)