Fix possible pagination issue when a sync returns an empty limited timeline
This commit is contained in:
parent
f465a5b52f
commit
821390c7d6
@ -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…
Reference in New Issue
Block a user