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

Method invalidateParticipants

Telegram/SourceFiles/data/data_chat.cpp:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void ChatData::invalidateParticipants() {
124 participants.clear();
125 admins.clear();
126 setAdminRights(ChatAdminRights());
127 //setDefaultRestrictions(ChatRestrictions());
128 invitedByMe.clear();
129 botStatus = Data::BotStatus::Unknown;
130 session().changes().peerUpdated(
131 this,
132 UpdateFlag::Members | UpdateFlag::Admins);
133}
134
135void ChatData::setFlags(ChatDataFlags which) {
136 const auto wasIn = amIn();

Callers 2

processChatMethod · 0.80
ApplyChatUpdateFunction · 0.80

Calls 3

peerUpdatedMethod · 0.80
clearMethod · 0.45
changesMethod · 0.45

Tested by

no test coverage detected