瀏覽代碼

fix(toolbox): do not show hangup menu for non-moderators

factor2
Shawn 2 年之前
父節點
當前提交
ab262ec8b1
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      react/features/toolbox/components/web/Toolbox.tsx

+ 3
- 2
react/features/toolbox/components/web/Toolbox.tsx 查看文件

@@ -24,7 +24,8 @@ import {
24 24
 } from '../../../base/participants/actions';
25 25
 import {
26 26
     getLocalParticipant,
27
-    hasRaisedHand
27
+    hasRaisedHand,
28
+    isLocalParticipantModerator
28 29
 } from '../../../base/participants/functions';
29 30
 import { connect } from '../../../base/redux/functions';
30 31
 import { getLocalVideoTrack } from '../../../base/tracks/functions';
@@ -1518,7 +1519,7 @@ class Toolbox extends Component<IProps> {
1518 1519
 function _mapStateToProps(state: IReduxState, ownProps: Partial<IProps>) {
1519 1520
     const { conference } = state['features/base/conference'];
1520 1521
     const { isNarrowLayout } = state['features/base/responsive-ui'];
1521
-    const endConferenceSupported = conference?.isEndConferenceSupported();
1522
+    const endConferenceSupported = conference?.isEndConferenceSupported() && isLocalParticipantModerator(state);
1522 1523
 
1523 1524
     const {
1524 1525
         buttonsWithNotifyClick,

Loading…
取消
儲存