Fix MagicSearch to search even in no sip contact

This commit is contained in:
Erwan Croze 2018-05-11 15:56:38 +02:00
parent 65317c1f56
commit 6ce1c755d9

View file

@ -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()) {