Group call owner chat/channel is always admin.

This commit is contained in:
John Preston 2021-05-31 15:52:51 +04:00
parent 4080fa9bdc
commit d19d6bbcd9

View file

@ -193,7 +193,7 @@ struct GroupCall::SinkPointer {
not_null<PeerData*> participantPeer) {
const auto user = participantPeer->asUser();
if (!user) {
return false;
return (peer == participantPeer);
}
if (const auto chat = peer->asChat()) {
return chat->admins.contains(user)