Do not replace known width and height of animated stickers.

GitOrigin-RevId: 0b74a1ffe07608c9d1ac447e5d471cc706894cbd
This commit is contained in:
levlam 2019-07-30 19:41:49 +03:00
parent 6464b302e9
commit cfe7b95be5

View File

@ -1583,7 +1583,7 @@ void StickersManager::add_sticker_thumbnail(Sticker *s, PhotoSize thumbnail) {
void StickersManager::create_sticker(FileId file_id, PhotoSize thumbnail, Dimensions dimensions,
tl_object_ptr<telegram_api::documentAttributeSticker> sticker, bool is_animated,
MultiPromiseActor *load_data_multipromise_ptr) {
if (is_animated) {
if (is_animated && dimensions.width == 0) {
dimensions.width = 512;
dimensions.height = 512;
}