Add a feature flag for Simplified Sliding Sync. (#3057)

* Disable SSS when logging out.

* Bump the SDK.
This commit is contained in:
Doug
2024-07-18 10:16:51 +01:00
committed by GitHub
parent 288d2c2fdc
commit 2fb7f65957
15 changed files with 171 additions and 44 deletions
@@ -86,7 +86,10 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
// It's imperative that we create **at most** one UserSession/Client per process
Task.synchronous { [appHooks] in
do {
Self.userSession = try await NSEUserSession(credentials: credentials, clientSessionDelegate: keychainController, appHooks: appHooks)
Self.userSession = try await NSEUserSession(credentials: credentials,
clientSessionDelegate: keychainController,
simplifiedSlidingSyncEnabled: settings.simplifiedSlidingSyncEnabled,
appHooks: appHooks)
} catch {
MXLog.error("Failed creating user session with error: \(error)")
}