diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-04-24 00:39:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-05-07 23:26:28 +0200 |
commit | 821390c7d655a52a94a409b77dc79e3125892cd1 (patch) | |
tree | 03318337fee2e9be665a6340d4038ba7376f4a91 /src | |
parent | Merge pull request #1717 from Integral-Tech/optimize-qstring (diff) | |
download | nheko-821390c7d655a52a94a409b77dc79e3125892cd1.tar.xz |
Fix possible pagination issue when a sync returns an empty limited timeline
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 6 |
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; |