2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-22 10:17:10 +00:00

Fix incorrect filesize check.

Fixes #29630.
This commit is contained in:
John Preston 2025-08-04 11:46:19 +04:00
parent 56be0ef4be
commit 1f8d3ed911

View File

@ -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;