From 2559c5d6f4c3bb7da4dda690f42beb057c90db8e Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 29 Jan 2021 19:19:07 +0400 Subject: [PATCH] Allow other admins to mute me in voice chats. --- Telegram/SourceFiles/calls/calls_group_call.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/calls/calls_group_call.cpp b/Telegram/SourceFiles/calls/calls_group_call.cpp index b0ec7c6559..77d119d478 100644 --- a/Telegram/SourceFiles/calls/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/calls_group_call.cpp @@ -631,6 +631,8 @@ void GroupCall::handleUpdate(const MTPDupdateGroupCallParticipants &data) { setMuted(MuteState::ForceMuted); } else if (muted() == MuteState::ForceMuted) { setMuted(MuteState::Muted); + } else if (data.is_muted() && muted() != MuteState::Muted) { + setMuted(MuteState::Muted); } }); }