mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 00:08:13 +00:00
Call logs : Remove double check on local address and use only logs from Account().
This commit is contained in:
parent
a1ad1ad52d
commit
adce129cf0
1 changed files with 3 additions and 3 deletions
|
|
@ -60,10 +60,7 @@ 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(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<std::shared_ptr<linphone::CallLog
|
|||
}
|
||||
|
||||
void CallHistoryListModel::onCallLogUpdated(const std::shared_ptr<linphone::CallLog> &call){
|
||||
auto haveAccount = CoreManager::getInstance()->getCore()->getDefaultAccount();
|
||||
if(haveAccount && !call->getLocalAddress()->weakEqual(CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddress()))
|
||||
return;
|
||||
add(std::list<std::shared_ptr<linphone::CallLog>>{call});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue