From 7c4700b238987c9ae09c4cabd49ab03f60fa8aab Mon Sep 17 00:00:00 2001 From: JRoberts <8711996+jr-simplex@users.noreply.github.com> Date: Fri, 30 Dec 2022 20:17:56 +0400 Subject: [PATCH] ios: check chats not empty before showing lock notice (#1666) --- apps/ios/Shared/ContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ios/Shared/ContentView.swift b/apps/ios/Shared/ContentView.swift index aec5b96f90..464a12dfa8 100644 --- a/apps/ios/Shared/ContentView.swift +++ b/apps/ios/Shared/ContentView.swift @@ -59,7 +59,7 @@ struct ContentView: View { onAuthorized: { notificationAlertShown = false } ) // Local Authentication notice is to be shown on next start after onboarding is complete - if (!prefLANoticeShown && prefShowLANotice) { + if (!prefLANoticeShown && prefShowLANotice && !chatModel.chats.isEmpty) { prefLANoticeShown = true alertManager.showAlert(laNoticeAlert()) } else if !chatModel.showCallView && CallController.shared.activeCallInvitation == nil {