Commit 3a736100 authored by Ronan's avatar Ronan

fix(SipAddressesModel): fetch only the last chat message to increase...

fix(SipAddressesModel): fetch only the last chat message to increase performances in initSipAddressesFromChat
parent 3e65731b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment