Fixed login restoration on MacCatalyst. Added keychain access group entitlement.

This commit is contained in:
Stefan Ceriu 2022-03-16 15:09:33 +02:00
parent 43f78d0a26
commit 44da96c55f
3 changed files with 7 additions and 3 deletions

View File

@ -34,8 +34,8 @@ class LoginScreenViewModel: LoginScreenViewModelType, LoginScreenViewModelProtoc
// MARK: - Setup // MARK: - Setup
init() { init() {
super.init(initialViewState: LoginScreenViewState(bindings: LoginScreenViewStateBindings(username: "@stefan.ceriu-element01:matrix.org", super.init(initialViewState: LoginScreenViewState(bindings: LoginScreenViewStateBindings(username: "",
password: "radeon"))) password: "")))
} }
// MARK: - Public // MARK: - Public

View File

@ -24,7 +24,7 @@ class KeychainController: KeychainControllerProtocol {
do { do {
try keychain.set(token, key: username) try keychain.set(token, key: username)
} catch { } catch {
MXLog.error("Failed storing user restore token") MXLog.error("Failed storing user restore token with error: \(error)")
} }
} }

View File

@ -6,5 +6,9 @@
<true/> <true/>
<key>com.apple.security.network.client</key> <key>com.apple.security.network.client</key>
<true/> <true/>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)io.element.elementx</string>
</array>
</dict> </dict>
</plist> </plist>