Commit a4b9bdb6 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(SipAddressesModel): do not fetch all chat messages to construct history, ONLY THE LAST...

parent ff3407d9
......@@ -469,7 +469,7 @@ void SipAddressesModel::initSipAddresses () {
// Get sip addresses from chatrooms.
for (const auto &chatRoom : core->getChatRooms()) {
list<shared_ptr<linphone::ChatMessage> > history = chatRoom->getHistory(0);
list<shared_ptr<linphone::ChatMessage> > history = chatRoom->getHistory(1);
if (history.size() == 0)
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