From ab262ec8b14c6e8a0f1d644ab8b6c691ea0453cd Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 31 Jan 2023 20:55:56 +0000 Subject: [PATCH] fix(toolbox): do not show hangup menu for non-moderators --- react/features/toolbox/components/web/Toolbox.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsx index 7707380f7..a331bc058 100644 --- a/react/features/toolbox/components/web/Toolbox.tsx +++ b/react/features/toolbox/components/web/Toolbox.tsx @@ -24,7 +24,8 @@ import { } from '../../../base/participants/actions'; import { getLocalParticipant, - hasRaisedHand + hasRaisedHand, + isLocalParticipantModerator } from '../../../base/participants/functions'; import { connect } from '../../../base/redux/functions'; import { getLocalVideoTrack } from '../../../base/tracks/functions'; @@ -1518,7 +1519,7 @@ class Toolbox extends Component { function _mapStateToProps(state: IReduxState, ownProps: Partial) { const { conference } = state['features/base/conference']; const { isNarrowLayout } = state['features/base/responsive-ui']; - const endConferenceSupported = conference?.isEndConferenceSupported(); + const endConferenceSupported = conference?.isEndConferenceSupported() && isLocalParticipantModerator(state); const { buttonsWithNotifyClick,