From ffaae36d2519aada6fd26696166204d22e9de6be Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Fri, 3 Jul 2020 11:47:53 +0300 Subject: [PATCH] Fix cache limit --- Telegram/SourceFiles/boxes/local_storage_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/local_storage_box.cpp b/Telegram/SourceFiles/boxes/local_storage_box.cpp index ebadcf387..22a435380 100644 --- a/Telegram/SourceFiles/boxes/local_storage_box.cpp +++ b/Telegram/SourceFiles/boxes/local_storage_box.cpp @@ -30,7 +30,7 @@ namespace { constexpr auto kMegabyte = int64(1024 * 1024); constexpr auto kTotalSizeLimitsCount = 27; constexpr auto kMediaSizeLimitsCount = 27; -constexpr auto kMinimalSizeLimit = 100 * kMegabyte; +constexpr auto kMinimalSizeLimit = 20 * kMegabyte; constexpr auto kTimeLimitsCount = 22; constexpr auto kMaxTimeLimitValue = std::numeric_limits::max(); constexpr auto kFakeMediaCacheTag = uint16(0xFFFF);