mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-02 07:01:44 +00:00
remove comment
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user