Bladeren bron

rn: fix video unmuting when disabling audio-only

When the video unmute button disabled audio-only, also unmute video. This fixes
a weird case in which the user need to "unmute twice" if they were muted beofre
they enabled audio-only mode. That's ok if the audio-only button was used, but
not if the video-unmute button was used, since the expectation is to have video,
of course.
master
Saúl Ibarra Corretgé 6 jaren geleden
bovenliggende
commit
f85ac3ef91
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6
    6
      react/features/toolbox/components/VideoMuteButton.js

+ 6
- 6
react/features/toolbox/components/VideoMuteButton.js Bestand weergeven

@@ -135,14 +135,14 @@ class VideoMuteButton extends AbstractVideoMuteButton<Props, *> {
135 135
         if (this.props._audioOnly) {
136 136
             this.props.dispatch(
137 137
                 setAudioOnly(false, /* ensureTrack */ true));
138
-        } else {
139
-            this.props.dispatch(
140
-                setVideoMuted(
141
-                    videoMuted,
142
-                    VIDEO_MUTISM_AUTHORITY.USER,
143
-                    /* ensureTrack */ true));
144 138
         }
145 139
 
140
+        this.props.dispatch(
141
+            setVideoMuted(
142
+                videoMuted,
143
+                VIDEO_MUTISM_AUTHORITY.USER,
144
+                /* ensureTrack */ true));
145
+
146 146
         // FIXME: The old conference logic still relies on this event being
147 147
         // emitted.
148 148
         typeof APP === 'undefined'

Laden…
Annuleren
Opslaan