From ed536c9f80a1427442595b85c9d536c5e090ca9e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Mon, 14 Jul 2025 12:46:15 +0100 Subject: [PATCH] ios: fix iOS 15 crash when importing chat database (#6068) --- apps/ios/Shared/Views/ChatList/UserPicker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ios/Shared/Views/ChatList/UserPicker.swift b/apps/ios/Shared/Views/ChatList/UserPicker.swift index c38ddfb1da..b1cd4015c6 100644 --- a/apps/ios/Shared/Views/ChatList/UserPicker.swift +++ b/apps/ios/Shared/Views/ChatList/UserPicker.swift @@ -97,7 +97,7 @@ struct UserPicker: View { } .onAppear { // This check prevents the call of listUsers after the app is suspended, and the database is closed. - if case .active = scenePhase { + if case .active = scenePhase, hasChatCtrl() { currentUser = m.currentUser?.userId Task { do {