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