remove comment

This commit is contained in:
Evgeny Poberezkin
2026-06-30 23:20:44 +01:00
parent ef37d2c9d2
commit 8dc84d1838
3 changed files with 0 additions and 9 deletions
@@ -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,
@@ -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,
@@ -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)))
}