From a0d2fe6267248fa097110ce8bcdeb1cd8e9c6535 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 9 Jun 2023 17:41:33 +0200 Subject: [PATCH] Fix empty chat rooms on the first selection with unread messages. --- linphone-app/src/components/chat-room/ChatRoomModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linphone-app/src/components/chat-room/ChatRoomModel.cpp b/linphone-app/src/components/chat-room/ChatRoomModel.cpp index e3cabfc99..5bc646fb3 100644 --- a/linphone-app/src/components/chat-room/ChatRoomModel.cpp +++ b/linphone-app/src/components/chat-room/ChatRoomModel.cpp @@ -938,7 +938,7 @@ void ChatRoomModel::resetData(){ void ChatRoomModel::initEntries(){ if( mList.size() > mLastEntriesStep) resetData(); - if(mList.size() == 0) { + if(mList.size() <= (mUnreadMessageNotice ? 1 : 0)) { qDebug() << "Internal Entries : Init"; // On call : reinitialize all entries. This allow to free up memory QList > entries;