Procházet zdrojové kódy

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.
master
paweldomas před 7 roky
rodič
revize
380909371f

+ 1
- 1
react/features/toolbox/components/AudioMuteButton.js Zobrazit soubor

@@ -121,7 +121,7 @@ class AudioMuteButton extends AbstractAudioMuteButton<Props, *> {
121 121
      */
122 122
     _setAudioMuted(audioMuted: boolean) {
123 123
         sendAnalytics(createToolbarEvent(AUDIO_MUTE, { enable: audioMuted }));
124
-        this.props.dispatch(setAudioMuted(audioMuted));
124
+        this.props.dispatch(setAudioMuted(audioMuted, /* ensureTrack */ true));
125 125
 
126 126
         // FIXME: The old conference logic as well as the shared video feature
127 127
         // still rely on this event being emitted.

Načítá se…
Zrušit
Uložit