| 414 | } |
| 415 | |
| 416 | Image *DocumentMedia::getStickerSmall() { |
| 417 | const auto data = _owner->sticker(); |
| 418 | if ((data && data->isAnimated()) || thumbnailEnoughForSticker()) { |
| 419 | return thumbnail(); |
| 420 | } |
| 421 | return _sticker.get(); |
| 422 | } |
| 423 | |
| 424 | void DocumentMedia::checkStickerLarge(not_null<FileLoader*> loader) { |
| 425 | if (_sticker || !_owner->sticker()) { |
no test coverage detected