diff --git a/linphone-app/src/components/history/CallHistoryListModel.cpp b/linphone-app/src/components/history/CallHistoryListModel.cpp index 6310971d2..1652d9088 100644 --- a/linphone-app/src/components/history/CallHistoryListModel.cpp +++ b/linphone-app/src/components/history/CallHistoryListModel.cpp @@ -60,10 +60,7 @@ CallHistoryListModel::~CallHistoryListModel(){ void CallHistoryListModel::add(const std::list>& callLogs){ QList> toAdd; - auto defaultAccount = CoreManager::getInstance()->getCore()->getDefaultAccount(); for(auto callLog : callLogs) { - if(defaultAccount && !callLog->getLocalAddress()->weakEqual(CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddress())) - continue; QString confUri; auto remoteAddress = callLog->getRemoteAddress()->clone(); remoteAddress->clean(); @@ -89,6 +86,9 @@ void CallHistoryListModel::add(const std::list &call){ + auto haveAccount = CoreManager::getInstance()->getCore()->getDefaultAccount(); + if(haveAccount && !call->getLocalAddress()->weakEqual(CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddress())) + return; add(std::list>{call}); }