diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp index b3a7389991..0122e62903 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(