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;