| 397 | } |
| 398 | |
| 399 | void DocumentMedia::checkStickerSmall() { |
| 400 | const auto data = _owner->sticker(); |
| 401 | if ((data && data->isAnimated()) || thumbnailEnoughForSticker()) { |
| 402 | _owner->loadThumbnail(_owner->stickerSetOrigin()); |
| 403 | if (data && data->isAnimated()) { |
| 404 | automaticLoad(_owner->stickerSetOrigin(), nullptr); |
| 405 | } |
| 406 | } else { |
| 407 | checkStickerLarge(); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | Image *DocumentMedia::getStickerLarge() { |
| 412 | checkStickerLarge(); |
no test coverage detected