Allow 'mute for me' of muted by admin participants.

This commit is contained in:
John Preston 2021-04-29 12:36:04 +04:00
parent 8342b2d275
commit b3fcb4ef36

View file

@ -2010,10 +2010,7 @@ void MembersController::addMuteActionsToContextMenu(
|| isMe(participantPeer) || isMe(participantPeer)
|| (muteState == Row::State::Inactive || (muteState == Row::State::Inactive
&& participantIsCallAdmin && participantIsCallAdmin
&& _peer->canManageGroupCall()) && _peer->canManageGroupCall())) {
|| (isMuted
&& !_peer->canManageGroupCall()
&& muteState != Row::State::MutedByMe)) {
return nullptr; return nullptr;
} }
auto callback = [=] { auto callback = [=] {