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

Method update

Telegram/SourceFiles/data/data_cloud_file.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void CloudImage::update(
70 not_null<Main::Session*> session,
71 const ImageWithLocation &data) {
72 UpdateCloudFile(
73 _file,
74 data,
75 session->data().cache(),
76 kImageCacheTag,
77 [=](FileOrigin origin) { load(session, origin); },
78 [=](QImage preloaded, QByteArray) {
79 setToActive(session, std::move(preloaded));
80 });
81}
82
83bool CloudImage::empty() const {
84 return !_file.location.valid();

Callers 2

setBotCommandsMethod · 0.45
setBotCommandsMethod · 0.45

Calls 2

UpdateCloudFileFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected