MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / checkStickerSmall

Method checkStickerSmall

Telegram/SourceFiles/data/data_document_media.cpp:399–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void 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
411Image *DocumentMedia::getStickerLarge() {
412 checkStickerLarge();

Callers 7

preloadMethod · 0.80
prepareThumbnailMethod · 0.80
paintStickerMethod · 0.80
paintEventMethod · 0.80
paintStickerMethod · 0.80
setupNewGiftsMethod · 0.80

Calls 4

isAnimatedMethod · 0.80
stickerSetOriginMethod · 0.80
stickerMethod · 0.45
loadThumbnailMethod · 0.45

Tested by

no test coverage detected