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.
This commit is contained in:
paweldomas 2018-05-25 14:42:14 -05:00 committed by Lyubo Marinov
parent d4d5ef202a
commit 380909371f
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class AudioMuteButton extends AbstractAudioMuteButton<Props, *> {
*/
_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.