Skip to content

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

fix(video-menu): When muting all skip local.

damencho1b0dc0cfb070
diff --git a/react/features/video-menu/actions.any.ts b/react/features/video-menu/actions.any.ts
index 645e7b2178..877d798bbc 100644
--- a/react/features/video-menu/actions.any.ts
+++ b/react/features/video-menu/actions.any.ts
@@ -11,7 +11,7 @@ import { shouldShowModeratedNotification } from '../av-moderation/functions';
import { setAudioMuted, setVideoMuted } from '../base/media/actions';
import { MEDIA_TYPE, MediaType, VIDEO_MUTISM_AUTHORITY } from '../base/media/constants';
import { muteRemoteParticipant } from '../base/participants/actions';
-import { getLocalParticipant, getRemoteParticipants } from '../base/participants/functions';
+import { getRemoteParticipants } from '../base/participants/functions';
import { toggleScreensharing } from '../base/tracks/actions';
import { isModerationNotificationDisplayed } from '../notifications/functions';
@@ -88,11 +88,6 @@ export function muteRemote(participantId: string, mediaType: MediaType) {
export function muteAllParticipants(exclude: Array<string>, mediaType: MediaType) {
return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {
const state = getState();
- const localId = getLocalParticipant(state)?.id ?? '';
-
- if (!exclude.includes(localId)) {
- dispatch(muteLocal(true, mediaType, mediaType !== MEDIA_TYPE.AUDIO));
- }
getRemoteParticipants(state).forEach((p, id) => {
if (exclude.includes(id)) {