Przeglądaj źródła

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 7 lat temu
rodzic
commit
380909371f

+ 1
- 1
react/features/toolbox/components/AudioMuteButton.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz