Commit 2e862a65 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Do not include aborted calls in magic search results

parent f8299656
Pipeline #325 failed with stage
in 0 seconds
......@@ -210,7 +210,7 @@ list<SearchResult> MagicSearch::getAddressFromCallLog (
LinphoneCallLog *log = reinterpret_cast<LinphoneCallLog*>(f->data);
const LinphoneAddress *addr = (linphone_call_log_get_dir(log) == LinphoneCallDir::LinphoneCallIncoming) ?
linphone_call_log_get_from_address(log) : linphone_call_log_get_to_address(log);
if (addr) {
if (addr && linphone_call_log_get_status(log) != LinphoneCallAborted) {
if (filter.empty()) {
if (findAddress(currentList, addr)) continue;
resultList.push_back(SearchResult(0, addr, "", nullptr));
......
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