fix(toolbox) hide drawer after toggling camera

Fixes: https://github.com/jitsi/jitsi-meet/issues/12628
This commit is contained in:
Saúl Ibarra Corretgé 2022-12-02 13:50:22 +01:00 committed by Saúl Ibarra Corretgé
parent af072c3070
commit a2e8a7f28f
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}
/**