fix(toolbox): do not show hangup menu for non-moderators
This commit is contained in:
parent
cced41665d
commit
ab262ec8b1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue