diff --git a/apps/ios/Shared/Views/ChatList/ChatListView.swift b/apps/ios/Shared/Views/ChatList/ChatListView.swift index b70904e34e..01887c12be 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListView.swift @@ -684,8 +684,6 @@ struct ChatListSearchBar: View { searchChatFilteredBySimplexLink = nil connect(text) case let .name(text, _): - // A name lookup means "take me to this contact": open it (visible prompt), - // unlike a pasted link in search which filters the list — so no filterKnownContact. searchFocussed = false planAndConnect( text, diff --git a/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift b/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift index 32848bb219..a3e6d2ee2f 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift @@ -390,8 +390,6 @@ struct ContactsListSearchBar: View { searchChatFilteredBySimplexLink = nil connect(text) case let .name(text, _): - // A name lookup means "take me to this contact": open it (visible prompt), - // unlike a pasted link in search which filters the list — so no filterKnownContact. searchFocussed = false planAndConnect( text, diff --git a/apps/ios/Shared/Views/NewChat/NewChatView.swift b/apps/ios/Shared/Views/NewChat/NewChatView.swift index 4e4d8bb4f7..8e6b1b69a4 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatView.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatView.swift @@ -1463,9 +1463,6 @@ func planAndConnect( case let .known(contact): logger.debug("planAndConnect, .contactAddress, .known") await MainActor.run { - // A name-resolved contact is prepared in the store but not yet in the - // chat list (link-prepared chats arrive via NewPreparedChat). Surface it - // so it's visible and openable; no-op if already present. if ChatModel.shared.getContactChat(contact.contactId) == nil { ChatModel.shared.addChat(Chat(chatInfo: .direct(contact: contact))) } @@ -1548,8 +1545,6 @@ func planAndConnect( case let .known(groupInfo): logger.debug("planAndConnect, .groupLink, .known") await MainActor.run { - // Same as .contactAddress .known: surface a name-resolved (prepared) - // group in the chat list so it's visible and openable. if ChatModel.shared.getGroupChat(groupInfo.groupId) == nil { ChatModel.shared.addChat(Chat(chatInfo: .group(groupInfo: groupInfo, groupChatScope: nil))) }