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

Method createUserpicView

Telegram/SourceFiles/data/data_peer.cpp:503–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503Ui::PeerUserpicView PeerData::createUserpicView() {
504 if (_userpic.empty()) {
505 return {};
506 }
507 auto result = _userpic.createView();
508 _userpic.load(&session(), userpicPhotoOrigin());
509 return { .cloud = result };
510}
511
512bool PeerData::useEmptyUserpic(Ui::PeerUserpicView &view) const {
513 return !userpicCloudImage(view);

Callers 12

doShowNotificationMethod · 0.80
NotificationMethod · 0.80
updateNotifyDisplayMethod · 0.80
updatePeerPhotoMethod · 0.80
setupMethod · 0.80
peer_list_box.cppFile · 0.80
AddBidPlacesFunction · 0.80
processPhotoMethod · 0.80
processPeerPhotoMethod · 0.80
ChooseRecipientFunction · 0.80

Calls 3

emptyMethod · 0.45
createViewMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected