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

Method checkStickerLarge

Telegram/SourceFiles/data/data_document_media.cpp:281–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void DocumentMedia::checkStickerLarge() {
282 if (_sticker) {
283 return;
284 }
285 const auto data = _owner->sticker();
286 if (!data) {
287 return;
288 }
289 automaticLoad(_owner->stickerSetOrigin(), nullptr);
290 if (data->isAnimated() || !loaded()) {
291 return;
292 }
293 if (_bytes.isEmpty()) {
294 const auto &loc = _owner->location(true);
295 if (loc.accessEnable()) {
296 _sticker = std::make_unique<Image>(loc.name());
297 loc.accessDisable();
298 }
299 } else {
300 _sticker = std::make_unique<Image>(_bytes);
301 }
302}
303
304void DocumentMedia::automaticLoad(
305 Data::FileOrigin origin,

Callers 15

setStickerFromMethod · 0.80
waitForLikeIconMethod · 0.80
setDocumentMethod · 0.80
updateMethod · 0.80
AddReactionAnimatedIconFunction · 0.80
AddAiToneIconPreviewFunction · 0.80
SendGiftBoxFunction · 0.80
finishLoadMethod · 0.80
randomLoadedFromMethod · 0.80
preloadEffectMethod · 0.80

Calls 10

stickerSetOriginMethod · 0.80
isAnimatedMethod · 0.80
accessEnableMethod · 0.80
accessDisableMethod · 0.80
imageDataMethod · 0.80
stickerMethod · 0.45
isEmptyMethod · 0.45
locationMethod · 0.45
nameMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected