Fix a potential bug where the token couldn't be refreshed when the cached server /versions had expired. (#4687)

* Update SDK mocks for UniFFI 0.30.0

* Update the SDK.

* Update the SDK again

Includes a temporary workaround that patches the SDK's generated Swift files so that our tests don't crash:
3f0075fb8a
This commit is contained in:
Doug
2025-11-03 19:09:31 +00:00
committed by GitHub
parent 32edde00de
commit bf533e0572
16 changed files with 1062 additions and 535 deletions

View File

@@ -123,11 +123,11 @@ class UserSessionStore: UserSessionStoreProtocol {
enableOnlySignedDeviceIsolationMode: appSettings.enableOnlySignedDeviceIsolationMode,
enableKeyShareOnInvite: appSettings.enableKeyShareOnInvite,
threadsEnabled: appSettings.threadsEnabled)
.sessionPaths(dataPath: credentials.restorationToken.sessionDirectories.dataPath,
cachePath: credentials.restorationToken.sessionDirectories.cachePath)
.sqliteStore(config: .init(dataPath: credentials.restorationToken.sessionDirectories.dataPath,
cachePath: credentials.restorationToken.sessionDirectories.cachePath)
.passphrase(passphrase: credentials.restorationToken.passphrase))
.username(username: credentials.userID)
.homeserverUrl(url: homeserverURL)
.sessionPassphrase(passphrase: credentials.restorationToken.passphrase)
do {
let client = try await builder.build()