Skip to content

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

fix(toolbox) hide drawer after toggling camera

Saúl Ibarra Corretgéa2e8a7f28f8e
diff --git a/react/features/toolbox/components/web/ToggleCameraButton.js b/react/features/toolbox/components/web/ToggleCameraButton.js
index 54608c0a99..cea35cf58c 100644
--- a/react/features/toolbox/components/web/ToggleCameraButton.js
+++ b/react/features/toolbox/components/web/ToggleCameraButton.js
@@ -6,6 +6,7 @@ import { MEDIA_TYPE } from '../../../base/media';
import { connect } from '../../../base/redux';
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { isLocalTrackMuted, isToggleCameraEnabled, toggleCamera } from '../../../base/tracks';
+import { setOverflowMenuVisible } from '../../actions.web';
/**
* The type of the React {@code Component} props of {@link ToggleCameraButton}.
@@ -45,6 +46,7 @@ class ToggleCameraButton extends AbstractButton<Props, any> {
const { dispatch } = this.props;
dispatch(toggleCamera());
+ dispatch(setOverflowMenuVisible(false));
}
/**