Fix possible pagination issue when a sync returns an empty limited timeline

pull/1726/head
Nicolas Werner 7 months ago
parent f465a5b52f
commit 821390c7d6
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      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;

Loading…
Cancel
Save