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

Method userLoaded

Telegram/SourceFiles/data/data_session.cpp:527–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527UserData *Session::userLoaded(UserId id) const {
528 if (const auto peer = peerLoaded(peerFromUser(id))) {
529 return peer->asUser();
530 }
531 return nullptr;
532}
533
534ChatData *Session::chatLoaded(ChatId id) const {
535 if (const auto peer = peerLoaded(peerFromChat(id))) {

Callers 15

ParseAttachBotFunction · 0.45
loadMoreRowsMethod · 0.45
saveMethod · 0.45
setAuthorIdMethod · 0.45
PreviewAiToneBoxFunction · 0.45
CollectForbiddenUsersFunction · 0.45
fillFromChatMethod · 0.45
applyAdminMethod · 0.45
applyRegularMethod · 0.45
applyBannedMethod · 0.45

Calls 2

peerFromUserFunction · 0.85
asUserMethod · 0.80

Tested by

no test coverage detected