From 821390c7d655a52a94a409b77dc79e3125892cd1 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 24 Apr 2024 00:39:00 +0200 Subject: [PATCH] Fix possible pagination issue when a sync returns an empty limited timeline --- src/timeline/TimelineModel.cpp | 6 +++--- 1 file 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;