Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(participants-pane) removed getIsParticipantAudioMuted

Calin Chitu0f8fa4f05913
diff --git a/react/features/video-menu/actions.any.js b/react/features/video-menu/actions.any.js
index 00c9c9aaef..e49965b209 100644
--- a/react/features/video-menu/actions.any.js
+++ b/react/features/video-menu/actions.any.js
@@ -23,7 +23,6 @@ import {
getRemoteParticipants,
muteRemoteParticipant
} from '../base/participants';
-import { getIsParticipantAudioMuted } from '../base/tracks';
declare var APP: Object;
@@ -108,18 +107,3 @@ export function muteAllParticipants(exclude: Array<string>, mediaType: MEDIA_TYP
};
}
-
-/**
- * Don't allow participants to unmute video/audio.
- *
- * @returns {Function}
- */
-export function blockParticipantsAudioVideo() {
- return (dispatch: Dispatch<any>, getState: Function) => {
- const state = getState();
- const participants = state['features/base/participants'];
-
- participants
- .map(p => !getIsParticipantAudioMuted(p) && setAudioMuted(true));
- };
-}