From 6ce1c755d9e508d9ff9f7963c715b04a2bd3216d Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Fri, 11 May 2018 15:56:38 +0200 Subject: [PATCH] Fix MagicSearch to search even in no sip contact --- src/search/magic-search.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search/magic-search.cpp b/src/search/magic-search.cpp index d2d6982a9..65499075c 100644 --- a/src/search/magic-search.cpp +++ b/src/search/magic-search.cpp @@ -237,7 +237,9 @@ SearchResult MagicSearch::searchInFriend(const LinphoneFriend *lFriend, const st unsigned int weight = getMinWeight(); const LinphoneAddress* lAddress = linphone_friend_get_address(lFriend); - if (!checkDomain(lFriend, lAddress, withDomain)) return SearchResult(weight, nullptr); + if (!checkDomain(lFriend, lAddress, withDomain)) { + if (!withDomain.empty()) return SearchResult(weight, nullptr); + } // NAME if (linphone_core_vcard_supported()) {