mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Load more reactions per page after the first request.
This commit is contained in:
parent
2e94488eb4
commit
9038dfb3b8
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ namespace HistoryView {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kPerPageFirst = 20;
|
constexpr auto kPerPageFirst = 20;
|
||||||
constexpr auto kPerPage = 200;
|
constexpr auto kPerPage = 100;
|
||||||
|
|
||||||
class Row final : public PeerListRow {
|
class Row final : public PeerListRow {
|
||||||
public:
|
public:
|
||||||
|
@ -247,7 +247,7 @@ void Controller::loadMore(const QString &reaction) {
|
||||||
MTP_int(_item->id),
|
MTP_int(_item->id),
|
||||||
MTP_string(reaction),
|
MTP_string(reaction),
|
||||||
MTP_string(offset),
|
MTP_string(offset),
|
||||||
MTP_int(kPerPageFirst)
|
MTP_int(offset.isEmpty() ? kPerPageFirst : kPerPage)
|
||||||
)).done([=](const MTPmessages_MessageReactionsList &result) {
|
)).done([=](const MTPmessages_MessageReactionsList &result) {
|
||||||
_loadRequestId = 0;
|
_loadRequestId = 0;
|
||||||
const auto filtered = !reaction.isEmpty();
|
const auto filtered = !reaction.isEmpty();
|
||||||
|
|
Loading…
Add table
Reference in a new issue