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

Function PreloadSticker

Telegram/SourceFiles/boxes/premium_preview_box.cpp:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
94 const auto origin = media->owner()->stickerSetOrigin();
95 media->automaticLoad(origin, nullptr);
96 media->videoThumbnailWanted(origin);
97}
98
99[[nodiscard]] rpl::producer<QString> SectionTitle(PremiumFeature section) {
100 switch (section) {

Callers 2

StickerPreviewFunction · 0.85
ShowFunction · 0.85

Calls 4

stickerSetOriginMethod · 0.80
videoThumbnailWantedMethod · 0.80
ownerMethod · 0.45
automaticLoadMethod · 0.45

Tested by

no test coverage detected