mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 05:23:06 +00:00
fix(SipAddressesModel): fetch only the last chat message to increase performances in initSipAddressesFromChat
This commit is contained in:
parent
3e65731b72
commit
3a73610077
1 changed files with 1 additions and 2 deletions
|
|
@ -500,8 +500,7 @@ void SipAddressesModel::initSipAddresses () {
|
|||
|
||||
void SipAddressesModel::initSipAddressesFromChat () {
|
||||
for (const auto &chatRoom : CoreManager::getInstance()->getCore()->getChatRooms()) {
|
||||
list<shared_ptr<linphone::ChatMessage>> history = chatRoom->getHistory(0);
|
||||
|
||||
list<shared_ptr<linphone::ChatMessage>> history = chatRoom->getHistory(1);
|
||||
if (history.empty())
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue