|
@@ -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,
|