Quellcode durchsuchen

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é vor 6 Jahren
Ursprung
Commit
f85ac3ef91
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6
    6
      react/features/toolbox/components/VideoMuteButton.js

+ 6
- 6
react/features/toolbox/components/VideoMuteButton.js Datei anzeigen

@@ -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…
Abbrechen
Speichern