Do not replace known width and height of animated stickers.
GitOrigin-RevId: 0b74a1ffe07608c9d1ac447e5d471cc706894cbd
This commit is contained in:
parent
6464b302e9
commit
cfe7b95be5
@ -1583,7 +1583,7 @@ void StickersManager::add_sticker_thumbnail(Sticker *s, PhotoSize thumbnail) {
|
|||||||
void StickersManager::create_sticker(FileId file_id, PhotoSize thumbnail, Dimensions dimensions,
|
void StickersManager::create_sticker(FileId file_id, PhotoSize thumbnail, Dimensions dimensions,
|
||||||
tl_object_ptr<telegram_api::documentAttributeSticker> sticker, bool is_animated,
|
tl_object_ptr<telegram_api::documentAttributeSticker> sticker, bool is_animated,
|
||||||
MultiPromiseActor *load_data_multipromise_ptr) {
|
MultiPromiseActor *load_data_multipromise_ptr) {
|
||||||
if (is_animated) {
|
if (is_animated && dimensions.width == 0) {
|
||||||
dimensions.width = 512;
|
dimensions.width = 512;
|
||||||
dimensions.height = 512;
|
dimensions.height = 512;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user