mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 21:58:06 +00:00
Fix empty chat rooms on the first selection with unread messages.
This commit is contained in:
parent
dbbd601a6f
commit
a0d2fe6267
1 changed files with 1 additions and 1 deletions
|
|
@ -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<QSharedPointer<ChatEvent> > entries;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue