mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Group call owner chat/channel is always admin.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user