From 380909371faf2d56a29dddfee215d823e4617d36 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Fri, 25 May 2018 14:42:14 -0500 Subject: [PATCH] fix(AudioMuteButton): ensure track on unmute If "startWithAudioMuted" option is used we need to make sure that new local audio track will be created on unmute. --- react/features/toolbox/components/AudioMuteButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/toolbox/components/AudioMuteButton.js b/react/features/toolbox/components/AudioMuteButton.js index a1b8c6fd3..1e6bf56cd 100644 --- a/react/features/toolbox/components/AudioMuteButton.js +++ b/react/features/toolbox/components/AudioMuteButton.js @@ -121,7 +121,7 @@ class AudioMuteButton extends AbstractAudioMuteButton { */ _setAudioMuted(audioMuted: boolean) { sendAnalytics(createToolbarEvent(AUDIO_MUTE, { enable: audioMuted })); - this.props.dispatch(setAudioMuted(audioMuted)); + this.props.dispatch(setAudioMuted(audioMuted, /* ensureTrack */ true)); // FIXME: The old conference logic as well as the shared video feature // still rely on this event being emitted.