Apply restrictions in channel chats.

This commit is contained in:
levlam 2023-10-31 13:54:22 +03:00
parent 2ad5a86fa7
commit d5d069416e

View File

@ -17791,10 +17791,6 @@ DialogParticipantStatus ContactsManager::get_channel_permissions(ChannelId chann
DialogParticipantStatus ContactsManager::get_channel_permissions(const Channel *c) const {
c->status.update_restrictions();
if (!c->is_megagroup) {
// there is no restrictions in broadcast channels
return c->status;
}
return c->status.apply_restrictions(c->default_permissions, td_->auth_manager_->is_bot());
}