ios: fix closing chat info (#725)

This commit is contained in:
Evgeny Poberezkin
2022-06-03 13:05:34 +01:00
committed by GitHub
parent 47ec486201
commit 084d1d09a5
2 changed files with 1 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ struct ContentView: View {
}
private func justAuthenticate() {
userAuthorized = false
authenticate(reason: NSLocalizedString("Unlock", comment: "authentication reason")) { laResult in
switch (laResult) {
case .success:

View File

@@ -49,10 +49,8 @@ struct SimpleXApp: App {
enteredBackground = ProcessInfo.processInfo.systemUptime
}
doAuthenticate = false
userAuthorized = false
case .active:
doAuthenticate = authenticationExpired()
if !doAuthenticate { userAuthorized = true }
default:
break
}