Version 4.5.1: Fix excessive flood_wait trigger.

Regression was introduced in 1e8dfb7315.

Fixes #25494.
This commit is contained in:
John Preston 2023-01-02 17:30:32 +04:00
parent 19aa4f4acc
commit d496d41e7e
1 changed files with 2 additions and 2 deletions

View File

@ -176,8 +176,8 @@ const char kOptionAutoScrollInactiveChat[] =
namespace {
constexpr auto kMessagesPerPageFirst = 10;
constexpr auto kMessagesPerPage = 10;
constexpr auto kMessagesPerPageFirst = 30;
constexpr auto kMessagesPerPage = 50;
constexpr auto kPreloadHeightsCount = 3; // when 3 screens to scroll left make a preload request
constexpr auto kScrollToVoiceAfterScrolledMs = 1000;
constexpr auto kSkipRepaintWhileScrollMs = 100;