Load more reactions per page after the first request.

This commit is contained in:
John Preston 2022-01-26 11:57:21 +03:00
parent 2e94488eb4
commit 9038dfb3b8

View File

@ -24,7 +24,7 @@ namespace HistoryView {
namespace {
constexpr auto kPerPageFirst = 20;
constexpr auto kPerPage = 200;
constexpr auto kPerPage = 100;
class Row final : public PeerListRow {
public:
@ -247,7 +247,7 @@ void Controller::loadMore(const QString &reaction) {
MTP_int(_item->id),
MTP_string(reaction),
MTP_string(offset),
MTP_int(kPerPageFirst)
MTP_int(offset.isEmpty() ? kPerPageFirst : kPerPage)
)).done([=](const MTPmessages_MessageReactionsList &result) {
_loadRequestId = 0;
const auto filtered = !reaction.isEmpty();