mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Show only box(512,512) .webp as stickers.
This commit is contained in:
@@ -842,10 +842,7 @@ void FileLoadTask::process() {
|
||||
|
||||
if (ValidateThumbDimensions(w, h)) {
|
||||
isSticker = Core::IsMimeSticker(filemime)
|
||||
&& (w > 0)
|
||||
&& (h > 0)
|
||||
&& (w <= StickerMaxSize)
|
||||
&& (h <= StickerMaxSize)
|
||||
&& GoodStickerDimensions(w, h)
|
||||
&& (filesize < Storage::kMaxStickerBytesSize);
|
||||
if (isSticker) {
|
||||
attributes.push_back(MTP_documentAttributeSticker(
|
||||
|
Reference in New Issue
Block a user