2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-28 13:17:43 +00:00

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)