瀏覽代碼

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…
取消
儲存