From 6e97f3da0652a725eca487ca9679b35bb45b5e03 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 25 Jun 2022 14:05:52 +0200 Subject: [PATCH] Refresh last message when paginating backwards --- src/timeline/TimelineModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 79ba0c05..c7c1bfc5 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -415,7 +415,10 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj connect(&events, &EventStore::beginResetModel, this, [this]() { beginResetModel(); }); connect(&events, &EventStore::endResetModel, this, [this]() { endResetModel(); }); 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, &EventStore::startDMVerification, this,