From e4ac8107739c436473ae3eba55d5e79b041a530c Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 2 Nov 2021 09:59:06 +0400 Subject: [PATCH] Allow exactly 1x20 aspect in photos. --- Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp index b3a738999..0122e6290 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp @@ -205,8 +205,8 @@ int MaxAlbumItems() { bool ValidateThumbDimensions(int width, int height) { return (width > 0) && (height > 0) - && (width < 20 * height) - && (height < 20 * width); + && (width <= 20 * height) + && (height <= 20 * width); } std::vector DivideByGroups(