From 1b1a055d3700ee5b3656ec5e755fb8f1d2c8a75a Mon Sep 17 00:00:00 2001 From: Mario Jr Date: Mon, 16 Nov 2020 15:57:25 -0300 Subject: [PATCH] Fix audio modal buttons (MIC/LISTEN) not working after audio error When user joins audio and for some reason an error (such as 1001, 1002,...), happens, the user is not able to click "Mic" and "Listen Only Buttons"; except if the audio window is closed and oppened again. --- .../imports/ui/components/audio/audio-modal/component.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/audio/audio-modal/component.jsx b/bigbluebutton-html5/imports/ui/components/audio/audio-modal/component.jsx index 37ed4ab504..85e3ecb308 100755 --- a/bigbluebutton-html5/imports/ui/components/audio/audio-modal/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/audio/audio-modal/component.jsx @@ -183,6 +183,7 @@ class AudioModal extends Component { componentDidUpdate(prevProps) { const { autoplayBlocked, closeModal } = this.props; + if (autoplayBlocked !== prevProps.autoplayBlocked) { autoplayBlocked ? this.setState({ content: 'autoplayBlocked' }) : closeModal(); } @@ -246,13 +247,14 @@ class AudioModal extends Component { const { joinEchoTest, + isConnecting, } = this.props; const { disableActions, } = this.state; - if (disableActions) return; + if (disableActions && isConnecting) return; this.setState({ hasError: false,