From c4631a8ffca6bc64bf0dee679b6b5e4adbc77a3d Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:59:31 +0400 Subject: [PATCH] ios: fix contact cards opening empty page on connection --- apps/ios/Shared/Views/ChatList/ChatListNavLink.swift | 1 - apps/ios/Shared/Views/Contacts/ContactListNavLink.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift b/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift index 6c5dad1f74..11bf147ea6 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListNavLink.swift @@ -477,7 +477,6 @@ struct ChatListNavLink: View { Task { let ok = await connectContactViaAddress(contact.contactId, incognito, showAlert: { AlertManager.shared.showAlert($0) }) if ok { - ItemsModel.shared.loadOpenChat(contact.id) AlertManager.shared.showAlert(connReqSentAlert(.contact)) } } diff --git a/apps/ios/Shared/Views/Contacts/ContactListNavLink.swift b/apps/ios/Shared/Views/Contacts/ContactListNavLink.swift index 898a47cc86..9c447b81b8 100644 --- a/apps/ios/Shared/Views/Contacts/ContactListNavLink.swift +++ b/apps/ios/Shared/Views/Contacts/ContactListNavLink.swift @@ -188,7 +188,6 @@ struct ContactListNavLink: View { Task { let ok = await connectContactViaAddress(contact.contactId, incognito, showAlert: { alert = SomeAlert(alert: $0, id: "ContactListNavLink connectContactViaAddress") }) if ok { - ItemsModel.shared.loadOpenChat(contact.id) DispatchQueue.main.async { dismissAllSheets(animated: true) { AlertManager.shared.showAlert(connReqSentAlert(.contact))