mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add a migration to expire sync sessions so that m.space.* state is up to date. (#4482)
This commit is contained in:
@@ -410,6 +410,10 @@ class ClientProxy: ClientProxyProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
func expireSyncSessions() async {
|
||||
await syncService.expireSessions()
|
||||
}
|
||||
|
||||
func accountURL(action: AccountManagementAction) async -> URL? {
|
||||
try? await client.accountUrl(action: action).flatMap(URL.init(string:))
|
||||
}
|
||||
|
||||
@@ -140,6 +140,8 @@ protocol ClientProxyProtocol: AnyObject {
|
||||
func stopSync()
|
||||
|
||||
func stopSync(completion: (() -> Void)?) // Hopefully this will become async once we get SE-0371.
|
||||
|
||||
func expireSyncSessions() async
|
||||
|
||||
func accountURL(action: AccountManagementAction) async -> URL?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user