1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/TimelineView.cc b/src/timeline/TimelineView.cc
index 063b9f9d..8d1c8ae1 100644
--- a/src/timeline/TimelineView.cc
+++ b/src/timeline/TimelineView.cc
@@ -153,7 +153,8 @@ TimelineView::addBackwardsEvents(const QString &room_id, const mtx::responses::M
if (room_id_ != room_id)
return;
- if (msgs.chunk.size() == 0) {
+ // We've reached the start of the timline and there're no more messages.
+ if ((msgs.end == msgs.start) && msgs.chunk.size() == 0) {
isTimelineFinished = true;
return;
}
|