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

Method processPhoto

Telegram/SourceFiles/data/data_session.cpp:3404–3410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3402}
3403
3404not_null<PhotoData*> Session::processPhoto(const MTPPhoto &data) {
3405 return data.match([&](const MTPDphoto &data) {
3406 return processPhoto(data);
3407 }, [&](const MTPDphotoEmpty &data) {
3408 return photo(data.vid().v);
3409 });
3410}
3411
3412not_null<PhotoData*> Session::processPhoto(const MTPDphoto &data) {
3413 const auto result = photo(data.vid().v);

Callers 15

CreateMethod · 0.45
setupContentMethod · 0.45
setUserpicPhotoMethod · 0.45
ExtractCollageFunction · 0.45
ParseMediaFunction · 0.45
FromTLFunction · 0.45
setBotInfoMethod · 0.45
ApplyUserUpdateFunction · 0.45
ProcessPollMediaFunction · 0.45
PollMediaFromMTPFunction · 0.45
appendMethod · 0.45

Calls 7

ImageWithLocationClass · 0.85
FromImageInMemoryFunction · 0.85
QByteArrayClass · 0.85
emptyMethod · 0.45
sizeMethod · 0.45
indexOfMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected