Преглед на файлове

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 години
родител
ревизия
380909371f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      react/features/toolbox/components/AudioMuteButton.js

+ 1
- 1
react/features/toolbox/components/AudioMuteButton.js Целия файл

@@ -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.

Loading…
Отказ
Запис