Display all call on default account.

This commit is contained in:
Julien Wadel 2023-11-22 11:39:51 +01:00
parent 0b9130c37e
commit 2285bd2340

View file

@ -60,8 +60,9 @@ CallHistoryListModel::~CallHistoryListModel(){
void CallHistoryListModel::add(const std::list<std::shared_ptr<linphone::CallLog>>& callLogs){
QList<QSharedPointer<CallHistoryModel>> toAdd;
auto defaultAccount = CoreManager::getInstance()->getCore()->getDefaultAccount();
for(auto callLog : callLogs) {
if(!callLog->getLocalAddress()->weakEqual(CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddress()))
if(defaultAccount && !callLog->getLocalAddress()->weakEqual(CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddress()))
continue;
QString confUri;
auto remoteAddress = callLog->getRemoteAddress()->clone();