summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 3e3434b4..03606d90 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -1162,12 +1162,12 @@ TimelineModel::syncState(const mtx::responses::State &s)
 void
 TimelineModel::addEvents(const mtx::responses::Timeline &timeline)
 {
-    if (timeline.events.empty())
-        return;
-
     if (timeline.limited)
         setPaginationInProgress(false);
 
+    if (timeline.events.empty())
+        return;
+
     events.handleSync(timeline);
 
     using namespace mtx::events;