From 084d1d09a549c84a6f81ee02e319a97542fb29df Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Fri, 3 Jun 2022 13:05:34 +0100 Subject: [PATCH] ios: fix closing chat info (#725) --- apps/ios/Shared/ContentView.swift | 1 + apps/ios/Shared/SimpleXApp.swift | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/ios/Shared/ContentView.swift b/apps/ios/Shared/ContentView.swift index 6af2947781..e1e3b808b7 100644 --- a/apps/ios/Shared/ContentView.swift +++ b/apps/ios/Shared/ContentView.swift @@ -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: diff --git a/apps/ios/Shared/SimpleXApp.swift b/apps/ios/Shared/SimpleXApp.swift index 730e0cecc3..f6e5b23c4c 100644 --- a/apps/ios/Shared/SimpleXApp.swift +++ b/apps/ios/Shared/SimpleXApp.swift @@ -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 }