|
@@ -43,6 +43,11 @@ type Props = {
|
43
|
43
|
*/
|
44
|
44
|
_disableRemoteMute: Boolean,
|
45
|
45
|
|
|
46
|
+ /**
|
|
47
|
+ * Whether or not to display the grant moderator button.
|
|
48
|
+ */
|
|
49
|
+ _disableGrantModerator: Boolean,
|
|
50
|
+
|
46
|
51
|
/**
|
47
|
52
|
* Whether or not the participant is a conference moderator.
|
48
|
53
|
*/
|
|
@@ -136,6 +141,7 @@ class RemoteVideoMenuTriggerButton extends Component<Props> {
|
136
|
141
|
const {
|
137
|
142
|
_disableKick,
|
138
|
143
|
_disableRemoteMute,
|
|
144
|
+ _disableGrantModerator,
|
139
|
145
|
_isModerator,
|
140
|
146
|
dispatch,
|
141
|
147
|
initialVolumeValue,
|
|
@@ -170,11 +176,13 @@ class RemoteVideoMenuTriggerButton extends Component<Props> {
|
170
|
176
|
);
|
171
|
177
|
}
|
172
|
178
|
|
173
|
|
- buttons.push(
|
174
|
|
- <GrantModeratorButton
|
175
|
|
- key = 'grant-moderator'
|
176
|
|
- participantID = { participantID } />
|
177
|
|
- );
|
|
179
|
+ if (!_disableGrantModerator) {
|
|
180
|
+ buttons.push(
|
|
181
|
+ <GrantModeratorButton
|
|
182
|
+ key = 'grant-moderator'
|
|
183
|
+ participantID = { participantID } />
|
|
184
|
+ );
|
|
185
|
+ }
|
178
|
186
|
|
179
|
187
|
if (!_disableKick) {
|
180
|
188
|
buttons.push(
|
|
@@ -242,7 +250,7 @@ function _mapStateToProps(state, ownProps) {
|
242
|
250
|
const { participantID } = ownProps;
|
243
|
251
|
const localParticipant = getLocalParticipant(state);
|
244
|
252
|
const { remoteVideoMenu = {}, disableRemoteMute } = state['features/base/config'];
|
245
|
|
- const { disableKick } = remoteVideoMenu;
|
|
253
|
+ const { disableKick, disableGrantModerator } = remoteVideoMenu;
|
246
|
254
|
let _remoteControlState = null;
|
247
|
255
|
const participant = getParticipantById(state, participantID);
|
248
|
256
|
const _isRemoteControlSessionActive = participant?.remoteControlSessionStatus ?? false;
|
|
@@ -283,7 +291,8 @@ function _mapStateToProps(state, ownProps) {
|
283
|
291
|
_disableRemoteMute: Boolean(disableRemoteMute),
|
284
|
292
|
_remoteControlState,
|
285
|
293
|
_menuPosition,
|
286
|
|
- _overflowDrawer: overflowDrawer
|
|
294
|
+ _overflowDrawer: overflowDrawer,
|
|
295
|
+ _disableGrantModerator: Boolean(disableGrantModerator)
|
287
|
296
|
};
|
288
|
297
|
}
|
289
|
298
|
|