mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Incoming ephemerals weren't removed without reloading chat rooms (missing connection)
This commit is contained in:
parent
412d268628
commit
982c54f6cf
2 changed files with 5 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Fix using only username in URI handlers.
|
||||
- Chat flickering on load.
|
||||
- Color of busy indicator when the chat is loading.
|
||||
- Incoming ephemerals weren't removed without reloading chat rooms.
|
||||
- Update SDK to 5.2.42
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -953,8 +953,11 @@ void ChatRoomModel::initEntries(){
|
|||
qDebug() << "Internal Entries : Built";
|
||||
if(entries.size() >0){
|
||||
beginInsertRows(QModelIndex(),0, entries.size()-1);
|
||||
for(auto e : entries)
|
||||
for(auto e : entries) {
|
||||
if( e->mType == ChatRoomModel::EntryType::MessageEntry)
|
||||
connect(e.objectCast<ChatMessageModel>().get(), &ChatMessageModel::remove, this, &ChatRoomModel::removeEntry);
|
||||
mList.push_back(e);
|
||||
}
|
||||
endInsertRows();
|
||||
updateNewMessageNotice(mChatRoom->getUnreadMessagesCount());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue