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

Method findContactPhone

Telegram/SourceFiles/data/data_session.cpp:5054–5059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5052}
5053
5054QString Session::findContactPhone(not_null<UserData*> contact) const {
5055 const auto result = contact->phone();
5056 return result.isEmpty()
5057 ? findContactPhone(peerToUser(contact->id))
5058 : Ui::FormatPhone(result);
5059}
5060
5061QString Session::findContactPhone(UserId contactId) const {
5062 const auto i = _contactItems.find(contactId);

Callers 3

shareContactMethod · 0.80
UserPhoneFunction · 0.80
canShareThisContactMethod · 0.80

Calls 8

peerToUserFunction · 0.85
FormatPhoneFunction · 0.85
sharedContactMethod · 0.80
QStringClass · 0.50
isEmptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
mediaMethod · 0.45

Tested by

no test coverage detected