From b48764435548f514cff50ac2c0259819382c2178 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 2 Sep 2021 11:03:40 +0300 Subject: [PATCH] Fix incorrect bad file size logging. --- Telegram/SourceFiles/storage/file_upload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/storage/file_upload.cpp b/Telegram/SourceFiles/storage/file_upload.cpp index 9343caabf..c06146225 100644 --- a/Telegram/SourceFiles/storage/file_upload.cpp +++ b/Telegram/SourceFiles/storage/file_upload.cpp @@ -29,7 +29,7 @@ namespace { // max 512kb uploaded at the same time in each session constexpr auto kMaxUploadFileParallelSize = MTP::kUploadSessionsCount * 512 * 1024; -constexpr auto kDocumentMaxPartsCount = 3000; +constexpr auto kDocumentMaxPartsCount = 4000; // 32kb for tiny document ( < 1mb ) constexpr auto kDocumentUploadPartSize0 = 32 * 1024;