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
init() {
super.init(initialViewState: LoginScreenViewState(bindings: LoginScreenViewStateBindings(username: "@stefan.ceriu-element01:matrix.org",
password: "radeon")))
super.init(initialViewState: LoginScreenViewState(bindings: LoginScreenViewStateBindings(username: "",
password: "")))
}
// MARK: - Public

View File

@ -24,7 +24,7 @@ class KeychainController: KeychainControllerProtocol {
do {
try keychain.set(token, key: username)
} 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/>
<key>com.apple.security.network.client</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)io.element.elementx</string>
</array>
</dict>
</plist>