From d19d6bbcd9bd7aa2601d8562d5c57566cfdb682c Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 31 May 2021 15:52:51 +0400 Subject: [PATCH] Group call owner chat/channel is always admin. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index 4f5de9f227..e823dc0492 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -193,7 +193,7 @@ struct GroupCall::SinkPointer { not_null participantPeer) { const auto user = participantPeer->asUser(); if (!user) { - return false; + return (peer == participantPeer); } if (const auto chat = peer->asChat()) { return chat->admins.contains(user)