瀏覽代碼

fix(toolbox) hide drawer after toggling camera

Fixes: https://github.com/jitsi/jitsi-meet/issues/12628
factor2
Saúl Ibarra Corretgé 2 年之前
父節點
當前提交
a2e8a7f28f
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      react/features/toolbox/components/web/ToggleCameraButton.js

+ 2
- 0
react/features/toolbox/components/web/ToggleCameraButton.js 查看文件

@@ -6,6 +6,7 @@ import { MEDIA_TYPE } from '../../../base/media';
6 6
 import { connect } from '../../../base/redux';
7 7
 import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
8 8
 import { isLocalTrackMuted, isToggleCameraEnabled, toggleCamera } from '../../../base/tracks';
9
+import { setOverflowMenuVisible } from '../../actions.web';
9 10
 
10 11
 /**
11 12
  * The type of the React {@code Component} props of {@link ToggleCameraButton}.
@@ -45,6 +46,7 @@ class ToggleCameraButton extends AbstractButton<Props, any> {
45 46
         const { dispatch } = this.props;
46 47
 
47 48
         dispatch(toggleCamera());
49
+        dispatch(setOverflowMenuVisible(false));
48 50
     }
49 51
 
50 52
     /**

Loading…
取消
儲存