| 121 | } |
| 122 | |
| 123 | void 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 | |
| 135 | void ChatData::setFlags(ChatDataFlags which) { |
| 136 | const auto wasIn = amIn(); |
no test coverage detected