Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

rn: fix video unmuting when disabling audio-only

Saúl Ibarra Corretgéf85ac3ef910a
diff --git a/react/features/toolbox/components/VideoMuteButton.js b/react/features/toolbox/components/VideoMuteButton.js
index 14a744cfab..8bfaf5a255 100644
--- a/react/features/toolbox/components/VideoMuteButton.js
+++ b/react/features/toolbox/components/VideoMuteButton.js
@@ -135,14 +135,14 @@ class VideoMuteButton extends AbstractVideoMuteButton<Props, *> {
if (this.props._audioOnly) {
this.props.dispatch(
setAudioOnly(false, /* ensureTrack */ true));
- } else {
- this.props.dispatch(
- setVideoMuted(
- videoMuted,
- VIDEO_MUTISM_AUTHORITY.USER,
- /* ensureTrack */ true));
}
+ this.props.dispatch(
+ setVideoMuted(
+ videoMuted,
+ VIDEO_MUTISM_AUTHORITY.USER,
+ /* ensureTrack */ true));
+
// FIXME: The old conference logic still relies on this event being
// emitted.
typeof APP === 'undefined'