ios: check chats not empty before showing lock notice (#1666)
This commit is contained in:
@@ -59,7 +59,7 @@ struct ContentView: View {
|
|||||||
onAuthorized: { notificationAlertShown = false }
|
onAuthorized: { notificationAlertShown = false }
|
||||||
)
|
)
|
||||||
// Local Authentication notice is to be shown on next start after onboarding is complete
|
// 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
|
prefLANoticeShown = true
|
||||||
alertManager.showAlert(laNoticeAlert())
|
alertManager.showAlert(laNoticeAlert())
|
||||||
} else if !chatModel.showCallView && CallController.shared.activeCallInvitation == nil {
|
} else if !chatModel.showCallView && CallController.shared.activeCallInvitation == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user