Avoid reloading chat on single new event

This commit is contained in:
Julien Wadel 2021-09-17 10:05:20 +02:00
parent 99b9a7753c
commit d7668288cc

View file

@ -871,7 +871,6 @@ void ChatRoomModel::insertCall (const std::shared_ptr<linphone::CallLog> &callLo
endInsertRows();
}
}
emit layoutChanged();
updateLastUpdateTime();
}
}
@ -911,7 +910,6 @@ void ChatRoomModel::insertMessageAtEnd (const std::shared_ptr<linphone::ChatMess
beginInsertRows(QModelIndex(), row, row);
mEntries << model;
endInsertRows();
emit layoutChanged();
}
}
}
@ -943,7 +941,6 @@ void ChatRoomModel::insertNotice (const std::shared_ptr<linphone::EventLog> &eve
beginInsertRows(QModelIndex(), row, row);
mEntries << model;
endInsertRows();
emit layoutChanged();
}
}
}