mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Stop calling /messages if the prev_batch token is empty
This commit is contained in:
parent
e29fceaee4
commit
d608950bea
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ void
|
||||||
TimelineView::addBackwardsEvents(const mtx::responses::Messages &msgs)
|
TimelineView::addBackwardsEvents(const mtx::responses::Messages &msgs)
|
||||||
{
|
{
|
||||||
// We've reached the start of the timline and there're no more messages.
|
// We've reached the start of the timline and there're no more messages.
|
||||||
if ((msgs.end == msgs.start) && msgs.chunk.size() == 0) {
|
if (msgs.end.empty() || ((msgs.end == msgs.start) && msgs.chunk.size() == 0)) {
|
||||||
isTimelineFinished = true;
|
isTimelineFinished = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue