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

Method markForbidden

Telegram/SourceFiles/data/data_channel.cpp:604–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void ChannelData::markForbidden() {
605 owner().processChat(MTP_channelForbidden(
606 MTP_flags(isMegagroup()
607 ? MTPDchannelForbidden::Flag::f_megagroup
608 : MTPDchannelForbidden::Flag::f_broadcast),
609 MTP_long(peerToChannel(id).bare),
610 MTP_long(_accessHash),
611 MTP_string(name()),
612 MTPint()));
613}
614
615bool ChannelData::isGroupAdmin(not_null<UserData*> user) const {
616 if (auto info = mgInfo.get()) {

Callers

nothing calls this directly

Calls 6

MTP_flagsFunction · 0.85
MTP_longFunction · 0.85
peerToChannelFunction · 0.85
MTP_stringFunction · 0.85
nameFunction · 0.85
processChatMethod · 0.80

Tested by

no test coverage detected