mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix rooms with a lot of reactions not paginating correctly
This commit is contained in:
parent
e045e3eb1c
commit
ff54ce9334
1 changed files with 5 additions and 1 deletions
|
@ -469,7 +469,6 @@ TimelineModel::fetchMore(const QModelIndex &)
|
||||||
mtx::errors::to_string(err->matrix_error.errcode),
|
mtx::errors::to_string(err->matrix_error.errcode),
|
||||||
err->matrix_error.error,
|
err->matrix_error.error,
|
||||||
err->parse_error);
|
err->parse_error);
|
||||||
emit oldMessagesRetrieved(std::move(res));
|
|
||||||
setPaginationInProgress(false);
|
setPaginationInProgress(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -701,6 +700,11 @@ TimelineModel::addBackwardsEvents(const mtx::responses::Messages &msgs)
|
||||||
}
|
}
|
||||||
|
|
||||||
prev_batch_token_ = QString::fromStdString(msgs.end);
|
prev_batch_token_ = QString::fromStdString(msgs.end);
|
||||||
|
|
||||||
|
if (ids.empty() && !msgs.chunk.empty()) {
|
||||||
|
// no visible events fetched, prevent loading from stopping
|
||||||
|
fetchMore(QModelIndex());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
|
|
Loading…
Reference in a new issue