mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Group call owner chat/channel is always admin.
This commit is contained in:
parent
4080fa9bdc
commit
d19d6bbcd9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue