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

Method canViewMembers

Telegram/SourceFiles/data/data_channel.cpp:715–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713}
714
715bool ChannelData::canViewMembers() const {
716 return (flags() & Flag::CanViewParticipants)
717 && (!(flags() & Flag::ParticipantsHidden)
718 || amCreator()
719 || hasAdminRights());
720}
721
722bool ChannelData::canViewAdmins() const {
723 return (isMegagroup() || hasAdminRights() || amCreator());

Callers 15

GetAlreadyInFromPeerFunction · 0.80
isAlreadyInMethod · 0.80
fillFromChannelMethod · 0.80
loadMoreRowsMethod · 0.80
fillManageSectionMethod · 0.80
ApplyChannelUpdateFunction · 0.80
processChatMethod · 0.80
updateFilteredMethod · 0.80
requestLastMethod · 0.80
ParseRecentMethod · 0.80
refreshMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected