mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix animated stickers with wrong dimensions.
This commit is contained in:
@@ -573,8 +573,11 @@ void DocumentData::setattributes(
|
||||
});
|
||||
}
|
||||
if (type == StickerDocument
|
||||
&& (!GoodStickerDimensions(dimensions.width(), dimensions.height())
|
||||
|| (size > Storage::kMaxStickerBytesSize))) {
|
||||
&& ((size > Storage::kMaxStickerBytesSize)
|
||||
|| (!sticker()->animated
|
||||
&& !GoodStickerDimensions(
|
||||
dimensions.width(),
|
||||
dimensions.height())))) {
|
||||
type = FileDocument;
|
||||
_additional = nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user