From 9038dfb3b8e910a334ff8431df260c61e9572035 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 26 Jan 2022 11:57:21 +0300 Subject: [PATCH] Load more reactions per page after the first request. --- .../history/view/reactions/message_reactions_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/reactions/message_reactions_list.cpp b/Telegram/SourceFiles/history/view/reactions/message_reactions_list.cpp index da999c6a0..16dac6daf 100644 --- a/Telegram/SourceFiles/history/view/reactions/message_reactions_list.cpp +++ b/Telegram/SourceFiles/history/view/reactions/message_reactions_list.cpp @@ -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();