From 7cb6b4e2c505d940daadf8cbb7becd8378dc9339 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Wed, 22 Jun 2022 10:47:56 +0200 Subject: [PATCH] Now allow duplicate contacts to be displayed (useful if you have a local contact AND the contact exists with more informations in a LDAP server) --- Classes/MagicSearch.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Classes/MagicSearch.swift b/Classes/MagicSearch.swift index 8ce270f30..6d732e44d 100644 --- a/Classes/MagicSearch.swift +++ b/Classes/MagicSearch.swift @@ -100,13 +100,9 @@ import linphonesw @objc func getLastSearchContacts() -> [Contact] { if (needUpdateLastSearchContacts) { lastSearchContacts = [] - var addedContactNames : [String] = [] for res in magicSearch.lastSearch { if let contact = searchAndAddMatchingContact(searchResult: res) { - if (!addedContactNames.contains(contact.displayName)) { - addedContactNames.append(contact.displayName) - lastSearchContacts.append(contact) - } + lastSearchContacts.append(contact) } } needUpdateLastSearchContacts = false