Refresh last message when paginating backwards

This commit is contained in:
Nicolas Werner 2022-06-25 14:05:52 +02:00
parent dc4fbd167e
commit 6e97f3da06
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -415,7 +415,10 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
connect(&events, &EventStore::beginResetModel, this, [this]() { beginResetModel(); }); connect(&events, &EventStore::beginResetModel, this, [this]() { beginResetModel(); });
connect(&events, &EventStore::endResetModel, this, [this]() { endResetModel(); }); connect(&events, &EventStore::endResetModel, this, [this]() { endResetModel(); });
connect(&events, &EventStore::newEncryptedImage, this, &TimelineModel::newEncryptedImage); connect(&events, &EventStore::newEncryptedImage, this, &TimelineModel::newEncryptedImage);
connect(&events, &EventStore::fetchedMore, this, [this]() { setPaginationInProgress(false); }); connect(&events, &EventStore::fetchedMore, this, [this]() {
setPaginationInProgress(false);
updateLastMessage();
});
connect(&events, connect(&events,
&EventStore::startDMVerification, &EventStore::startDMVerification,
this, this,