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

Method channelLoaded

Telegram/SourceFiles/data/data_session.cpp:541–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541ChannelData *Session::channelLoaded(ChannelId id) const {
542 if (const auto peer = peerLoaded(peerFromChannel(id))) {
543 return peer->asChannel();
544 }
545 return nullptr;
546}
547
548not_null<UserData*> Session::processUser(const MTPUser &data) {
549 const auto result = user(data.match([](const auto &data) {

Callers 10

resolveChannelByIdMethod · 0.45
ChannelsLimitBoxFunction · 0.45
EditPaidMessagesFeeFunction · 0.45
resolveMethod · 0.45
ApplyChannelUpdateFunction · 0.45
TLToRulesFunction · 0.45
feedUpdateMethod · 0.45
performLookupByIdMethod · 0.45
applyServiceChangesMethod · 0.45
GenerateItemsFunction · 0.45

Calls 2

peerFromChannelFunction · 0.85
asChannelMethod · 0.80

Tested by

no test coverage detected