|
@@ -298,12 +298,9 @@ export function isIconUrl(icon: ?string | ?Object) {
|
298
|
298
|
*
|
299
|
299
|
* @param {Object|Function} stateful - Object or function that can be resolved
|
300
|
300
|
* to the Redux state.
|
301
|
|
- * @param {?boolean} ignoreToken - When true we ignore the token check.
|
302
|
301
|
* @returns {boolean}
|
303
|
302
|
*/
|
304
|
|
-export function isLocalParticipantModerator(
|
305
|
|
- stateful: Object | Function,
|
306
|
|
- ignoreToken: ?boolean = false) {
|
|
303
|
+export function isLocalParticipantModerator(stateful: Object | Function) {
|
307
|
304
|
const state = toState(stateful);
|
308
|
305
|
const localParticipant = getLocalParticipant(state);
|
309
|
306
|
|
|
@@ -313,9 +310,8 @@ export function isLocalParticipantModerator(
|
313
|
310
|
|
314
|
311
|
return (
|
315
|
312
|
localParticipant.role === PARTICIPANT_ROLE.MODERATOR
|
316
|
|
- && (ignoreToken
|
317
|
|
- || !state['features/base/config'].enableUserRolesBasedOnToken
|
318
|
|
- || !state['features/base/jwt'].isGuest));
|
|
313
|
+ && (!state['features/base/config'].enableUserRolesBasedOnToken
|
|
314
|
+ || !state['features/base/jwt'].isGuest));
|
319
|
315
|
}
|
320
|
316
|
|
321
|
317
|
/**
|