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

Method stickerSetOrigin

Telegram/SourceFiles/data/data_document.cpp:1560–1569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1558}
1559
1560Data::FileOrigin DocumentData::stickerSetOrigin() const {
1561 if (const auto data = sticker()) {
1562 if (const auto result = data->setOrigin()) {
1563 return result;
1564 } else if (owner().stickers().isFaved(this)) {
1565 return Data::FileOriginStickerSet(Data::Stickers::FavedSetId, 0);
1566 }
1567 }
1568 return Data::FileOrigin();
1569}
1570
1571Data::FileOrigin DocumentData::stickerOrGifOrigin() const {
1572 return (sticker()

Callers 15

AddMyChannelsBoxFunction · 0.80
UniqueGiftCoverWidgetMethod · 0.80
PreloadStickerFunction · 0.80
checkStickerLargeMethod · 0.80
checkStickerSmallMethod · 0.80
preloadEffectMethod · 0.80
showPreviewForMethod · 0.80
HasLottieThumbnailFunction · 0.80
HasWebmThumbnailFunction · 0.80
showPreviewMethod · 0.80
ensureMediaCreatedMethod · 0.80
preloadImagesMethod · 0.80

Calls 5

setOriginMethod · 0.80
isFavedMethod · 0.80
FileOriginClass · 0.70
stickersMethod · 0.45

Tested by

no test coverage detected