Never allow animated stickers outside of sticker sets.

GitOrigin-RevId: 7e86904956e1bdfc7b423fdfef5f212199caeb85
This commit is contained in:
levlam 2020-05-22 18:09:17 +03:00
parent 05b279bb13
commit c204fd6256

View File

@ -1939,7 +1939,9 @@ void StickersManager::create_sticker(FileId file_id, PhotoSize thumbnail, Dimens
}
}
}
if (s->set_id.is_valid()) {
s->is_animated = is_animated;
}
on_get_sticker(std::move(s), sticker != nullptr);
}