summary refs log tree commit diff
path: root/src/timeline/TimelineView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeline/TimelineView.cpp')
-rw-r--r--src/timeline/TimelineView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineView.cpp b/src/timeline/TimelineView.cpp

index e994409a..6eb553e8 100644 --- a/src/timeline/TimelineView.cpp +++ b/src/timeline/TimelineView.cpp
@@ -168,7 +168,7 @@ void TimelineView::addBackwardsEvents(const mtx::responses::Messages &msgs) { // We've reached the start of the timline and there're no more messages. - if ((msgs.end == msgs.start) && msgs.chunk.size() == 0) { + if (msgs.end.empty() || ((msgs.end == msgs.start) && msgs.chunk.size() == 0)) { isTimelineFinished = true; return; }