Commit 52861017 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Changing magic search sort function

parent f2cbcee3
......@@ -130,7 +130,7 @@ list<SearchResult> MagicSearch::getContactListFromFilter(const string &filter, c
}
resultList->sort([](const SearchResult& lsr, const SearchResult& rsr){
return lsr >= rsr;
return (!rsr.getFriend() && lsr.getFriend()) || lsr >= rsr;
});
proxy = linphone_core_get_default_proxy_config(this->getCore()->getCCore());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment