Automatically sign out when toggling the SSS feature flag. (#3071)

This commit is contained in:
Doug
2024-07-23 11:55:51 +01:00
committed by GitHub
parent 9879552b46
commit bf22250b45
14 changed files with 43 additions and 14 deletions
@@ -124,8 +124,8 @@ class UserSessionStore: UserSessionStoreProtocol {
let builder = ClientBuilder
.baseBuilder(httpProxy: URL(string: homeserverURL)?.globalProxy,
slidingSync: appSettings.simplifiedSlidingSyncEnabled ? .simplified : .restored,
sessionDelegate: keychainController,
simplifiedSlidingSyncEnabled: appSettings.simplifiedSlidingSyncEnabled,
appHooks: appHooks)
.sessionPath(path: credentials.restorationToken.sessionDirectory.path(percentEncoded: false))
.username(username: credentials.userID)