ios: check chats not empty before showing lock notice (#1666)

This commit is contained in:
JRoberts
2022-12-30 20:17:56 +04:00
committed by GitHub
parent 54190ffff9
commit 7c4700b238

View File

@@ -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 {