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

Method getStickerSmall

Telegram/SourceFiles/data/data_document_media.cpp:416–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

prepareThumbnailMethod · 0.80
paintStickerMethod · 0.80
paintEventMethod · 0.80
paintStickerMethod · 0.80

Calls 3

isAnimatedMethod · 0.80
stickerMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected