mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 10:29:24 +00:00
fix(ChatModel): use peer/local addresses to get call history
This commit is contained in:
parent
52161f78ec
commit
2ab177b4d7
1 changed files with 2 additions and 4 deletions
|
|
@ -368,10 +368,8 @@ void ChatModel::setSipAddresses (const QString &peerAddress, const QString &loca
|
|||
);
|
||||
|
||||
// Get calls.
|
||||
// TODO: Add an API to find with local and peer addresses.
|
||||
for (auto &callLog : core->getCallHistoryForAddress(mChatRoom->getPeerAddress()))
|
||||
if (mChatRoom->getLocalAddress()->weakEqual(callLog->getLocalAddress()))
|
||||
insertCall(callLog);
|
||||
for (auto &callLog : core->getCallHistory(mChatRoom->getPeerAddress(), mChatRoom->getLocalAddress()))
|
||||
insertCall(callLog);
|
||||
|
||||
qInfo() << QStringLiteral("ChatModel (%1, %2) loaded in %3 milliseconds.")
|
||||
.arg(peerAddress).arg(localAddress).arg(timer.elapsed());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue