mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-09 07:47:33 +00:00
Load more reactions per page after the first request.
This commit is contained in:
parent
2e94488eb4
commit
9038dfb3b8
@ -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…
Reference in New Issue
Block a user