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

Method start

Telegram/SourceFiles/data/data_media_preload.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void PhotoPreload::start(FileOrigin origin) {
71 if (_photo->loaded()) {
72 callDone();
73 } else {
74 _photo->owner()->load(origin, LoadFromCloudOrLocal, true);
75 _photo->owner()->session().downloaderTaskFinished(
76 ) | rpl::filter([=] {
77 return _photo->loaded();
78 }) | rpl::on_next([=] { callDone(); }, _lifetime);
79 }
80}
81
82VideoPreload::VideoPreload(
83 not_null<DocumentData*> video,

Callers 15

LoadCloudFileFunction · 0.45
saveMethod · 0.45
registerForMethod · 0.45
onStateChangedMethod · 0.45
scrollToDefaultMethod · 0.45
startSlideAnimationMethod · 0.45
closeChildListMethod · 0.45
setLayerMethod · 0.45
startReorderPinnedMethod · 0.45

Calls 5

loadedMethod · 0.45
loadMethod · 0.45
ownerMethod · 0.45
sessionMethod · 0.45

Tested by

no test coverage detected