Bladeren bron

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 jaren geleden
bovenliggende
commit
380909371f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      react/features/toolbox/components/AudioMuteButton.js

+ 1
- 1
react/features/toolbox/components/AudioMuteButton.js Bestand weergeven

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.

Laden…
Annuleren
Opslaan