mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +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 {
|
||||
|
||||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue