Allow blocking channels in voice chats.

This commit is contained in:
John Preston
2021-03-19 19:10:44 +04:00
parent a0a13c3b86
commit 3bd6b2268f
14 changed files with 124 additions and 109 deletions
@@ -84,7 +84,7 @@ void GroupMembersWidget::removePeer(PeerData *selectedPeer) {
return it->second.rights;
}
}
return MTP_chatBannedRights(MTP_flags(0), MTP_int(0));
return ChannelData::EmptyRestrictedRights(user);
}();
const auto peer = this->peer();