summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-06-25 14:05:52 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-06-25 14:05:52 +0200
commit6e97f3da0652a725eca487ca9679b35bb45b5e03 (patch)
treecb17c534c3fc8d8b66bbe2e798231ddf110da197
parentFix linting (diff)
downloadnheko-6e97f3da0652a725eca487ca9679b35bb45b5e03.tar.xz
Refresh last message when paginating backwards
-rw-r--r--src/timeline/TimelineModel.cpp5
1 files changed, 4 insertions, 1 deletions
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,