mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +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) {
|
not_null<PeerData*> participantPeer) {
|
||||||
const auto user = participantPeer->asUser();
|
const auto user = participantPeer->asUser();
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return false;
|
return (peer == participantPeer);
|
||||||
}
|
}
|
||||||
if (const auto chat = peer->asChat()) {
|
if (const auto chat = peer->asChat()) {
|
||||||
return chat->admins.contains(user)
|
return chat->admins.contains(user)
|
||||||
|
|
Loading…
Add table
Reference in a new issue