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

This commit is contained in:
Shawn 2023-01-31 20:55:56 +00:00 committed by Saúl Ibarra Corretgé
parent cced41665d
commit ab262ec8b1
1 changed files with 3 additions and 2 deletions

View File

@ -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<IProps> {
function _mapStateToProps(state: IReduxState, ownProps: Partial<IProps>) {
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,