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

Method location

Telegram/SourceFiles/data/data_session.cpp:4745–4762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4743}
4744
4745not_null<Data::CloudImage*> Session::location(const LocationPoint &point) {
4746 const auto i = _locations.find(point);
4747 if (i != _locations.cend()) {
4748 return i->second.get();
4749 }
4750 const auto location = Data::ComputeLocation(point);
4751 const auto prepared = ImageWithLocation{
4752 .location = ImageLocation(
4753 { location },
4754 location.width,
4755 location.height)
4756 };
4757 return _locations.emplace(
4758 point,
4759 std::make_unique<Data::CloudImage>(
4760 _session,
4761 prepared)).first->second.get();
4762}
4763
4764void Session::registerPhotoItem(
4765 not_null<const PhotoData*> photo,

Callers 15

documentUpdatedMethod · 0.45
saveAsMethod · 0.45
downloadMediaMethod · 0.45
displayDocumentMethod · 0.45
initThemePreviewMethod · 0.45
setStickerFromMethod · 0.45
setupWebmMethod · 0.45
paintMethod · 0.45
ReadRingtoneBytesFunction · 0.45
openPhotoExternalMethod · 0.45

Calls 6

ComputeLocationFunction · 0.85
ImageLocationClass · 0.85
emplaceMethod · 0.80
findMethod · 0.45
cendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected