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

Method isCurrentView

Telegram/SourceFiles/data/data_cloud_file.cpp:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144bool CloudImage::isCurrentView(const std::shared_ptr<QImage> &view) const {
145 if (!view) {
146 return empty();
147 }
148 return !view.owner_before(_view) && !_view.owner_before(view);
149}
150
151void CloudImage::setToActive(
152 not_null<Main::Session*> session,

Callers 2

userpicCloudImageMethod · 0.80
paintCustomUserpicMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected