mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
Fix possible pagination issue when a sync returns an empty limited timeline
This commit is contained in:
parent
f465a5b52f
commit
821390c7d6
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue