From adce129cf043ad537811d6a69dc0597d2c9f191d Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 22 Nov 2023 14:37:31 +0100 Subject: [PATCH] Call logs : Remove double check on local address and use only logs from Account(). --- .../src/components/history/CallHistoryListModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}); }