From 1f8d3ed9119d9756939fb3b0424f408b0ff1a014 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 4 Aug 2025 11:46:19 +0400 Subject: [PATCH] Fix incorrect filesize check. Fixes #29630. --- Telegram/SourceFiles/export/export_api_wrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp index fbb5b258eb..e378d9007c 100644 --- a/Telegram/SourceFiles/export/export_api_wrap.cpp +++ b/Telegram/SourceFiles/export/export_api_wrap.cpp @@ -2068,7 +2068,7 @@ bool ApiWrap::processFileLoad( } else if (!story && (_settings->media.types & type) != type) { file.skipReason = SkipReason::FileType; return true; - } else if (!story && fullSize >= _settings->media.sizeLimit) { + } else if (!story && fullSize > _settings->media.sizeLimit) { // Don't load thumbs for large files that we skip. file.skipReason = SkipReason::FileSize; return true;