浏览代码

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

正在加载...
取消
保存