From 06c7edbb0b5b346cb2495396be0732ba669f21fd Mon Sep 17 00:00:00 2001
From: Mario Jr <mariogasparoni@gmail.com>
Date: Tue, 6 Jul 2021 11:59:42 -0300
Subject: [PATCH] fix(audio): prevent mute notification to be triggered when
 mic is locked

When mic is locked, user is not able to talk so it doesn't make sense
to alert the user about unmuting (mute button is also disabled when mic
is locked).

Closes #12048
---
 .../imports/ui/components/audio/audio-controls/component.jsx    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx b/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx
index 1f595a961e..b5192cd715 100755
--- a/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/audio/audio-controls/component.jsx
@@ -206,7 +206,7 @@ class AudioControls extends PureComponent {
 
     return (
       <span className={styles.container}>
-        {isVoiceUser && inputStream && muteAlertEnabled && !listenOnly && muted ? (
+        {isVoiceUser && inputStream && muteAlertEnabled && !listenOnly && muted && showMute ? (
           <MutedAlert {...{
             muted, inputStream, isViewer, isPresenter,
           }}
-- 
GitLab