Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(native-participants-pane) fixed lint errors
Calin Chitue7a324185f92
diff --git a/react/features/participants-pane/components/native/ParticipantsPaneButton.js b/react/features/participants-pane/components/native/ParticipantsPaneButton.jsindex 66442698b2..5573193ecf 100644--- a/react/features/participants-pane/components/native/ParticipantsPaneButton.js+++ b/react/features/participants-pane/components/native/ParticipantsPaneButton.js@@ -5,12 +5,8 @@ import type { Dispatch } from 'redux';import { openDialog } from '../../../base/dialog';import { translate } from '../../../base/i18n';import { IconParticipants } from '../../../base/icons';-import { setActiveModalId } from '../../../base/modal';import { connect } from '../../../base/redux';import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';-import {- PARTICIPANTS_PANE_ID-} from '../../../invite/constants';import { ParticipantsPane } from './';@@ -39,7 +35,6 @@ class ParticipantsPaneButton extends AbstractButton<Props, *> {*/_handleClick() {this.props.dispatch(openDialog(ParticipantsPane));- this.props.dispatch(setActiveModalId(PARTICIPANTS_PANE_ID));}}diff --git a/react/features/participants-pane/components/web/LobbyParticipantList.js b/react/features/participants-pane/components/web/LobbyParticipantList.jsindex 43ef071fb3..bad4365ce8 100644--- a/react/features/participants-pane/components/web/LobbyParticipantList.js+++ b/react/features/participants-pane/components/web/LobbyParticipantList.js@@ -5,9 +5,9 @@ import React, { useCallback } from 'react';import { useTranslation } from 'react-i18next';import { useSelector, useDispatch } from 'react-redux';+import { withPixelLineHeight } from '../../../base/styles/functions.web';+import { admitMultiple } from '../../../lobby/actions.web';import { getLobbyState } from '../../../lobby/functions';-import { withPixelLineHeight } from '../../base/styles/functions.web';-import { admitMultiple } from '../../lobby/actions.web';import { LobbyParticipantItem } from './LobbyParticipantItem';diff --git a/react/features/video-menu/actions.any.js b/react/features/video-menu/actions.any.jsindex c89103243a..1bb73c11ff 100644--- a/react/features/video-menu/actions.any.js+++ b/react/features/video-menu/actions.any.js@@ -23,8 +23,8 @@ import {getRemoteParticipants,muteRemoteParticipant} from '../base/participants';+import { getIsParticipantAudioMuted } from '../base/tracks';import { setKnockingParticipantApproval } from '../lobby/actions';-import { getLobbyState } from '../lobby/functions';declare var APP: Object;@@ -112,12 +112,13 @@ export function muteAllParticipants(exclude: Array<string>, mediaType: MEDIA_TYP/*** Admit all knocking participants.*+ * @param {Array<Object>} knockingParticipants - Array of participants waiting in lobby.+ * @param {boolean} lobbyEnabled - Is lobby mode enabled.+ ** @returns {Function}*/-export function admitAllKnockingParticipants() {- return (dispatch: Dispatch<any>, getState: Function) => {- const state = getState();- const { knockingParticipants, lobbyEnabled } = getLobbyState(state);+export function admitAllKnockingParticipants(knockingParticipants: Array<Object>, lobbyEnabled: boolean) {+ return (dispatch: Dispatch<any>) => {const knockingParticipantsIds = knockingParticipants.map(participant => participant.id);knockingParticipantsIds@@ -125,3 +126,19 @@ export function admitAllKnockingParticipants() {.map(dispatch);};}+++/**+ * Don't allow participants to unmute.+ *+ * @returns {Function}+ */+export function dontAllowUnmute() {+ return (dispatch: Dispatch<any>, getState: Function) => {+ const state = getState();+ const participants = state['features/base/participants'];++ participants+ .map(p => !getIsParticipantAudioMuted(p) && setAudioMuted(true));+ };+}