| 5052 | } |
| 5053 | |
| 5054 | QString 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 | |
| 5061 | QString Session::findContactPhone(UserId contactId) const { |
| 5062 | const auto i = _contactItems.find(contactId); |
no test coverage detected