Skip to content

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

ref(participants): remove unused action.

Hristo Terezove3ab6c9f33b6
diff --git a/react/features/base/participants/actionTypes.ts b/react/features/base/participants/actionTypes.ts
index 85d7eb396f..ab14c96f93 100644
--- a/react/features/base/participants/actionTypes.ts
+++ b/react/features/base/participants/actionTypes.ts
@@ -43,18 +43,6 @@ export const KICK_PARTICIPANT = 'KICK_PARTICIPANT';
*/
export const MUTE_REMOTE_PARTICIPANT = 'MUTE_REMOTE_PARTICIPANT';
-/**
- * Create an action for when the local participant's display name is updated.
- *
- * {
- * type: PARTICIPANT_DISPLAY_NAME_CHANGED,
- * id: string,
- * name: string
- * }
- */
-export const PARTICIPANT_DISPLAY_NAME_CHANGED
- = 'PARTICIPANT_DISPLAY_NAME_CHANGED';
-
/**
* Action to signal that ID of participant has changed. This happens when
* local participant joins a new conference or quits one.
diff --git a/react/features/base/participants/middleware.ts b/react/features/base/participants/middleware.ts
index c8c97c65e6..86318fa931 100644
--- a/react/features/base/participants/middleware.ts
+++ b/react/features/base/participants/middleware.ts
@@ -18,7 +18,6 @@ import { isForceMuted } from '../../participants-pane/functions';
import { CALLING, INVITED } from '../../presence-status/constants';
import { RAISE_HAND_SOUND_ID } from '../../reactions/constants';
import { RECORDING_OFF_SOUND_ID, RECORDING_ON_SOUND_ID } from '../../recording/constants';
-import { changeLocalDisplayName } from '../../settings/actions';
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../app/actionTypes';
import { CONFERENCE_WILL_JOIN } from '../conference/actionTypes';
import { forEachConference, getCurrentConference } from '../conference/functions';
@@ -40,7 +39,6 @@ import {
MUTE_REMOTE_PARTICIPANT,
OVERWRITE_PARTICIPANTS_NAMES,
OVERWRITE_PARTICIPANT_NAME,
- PARTICIPANT_DISPLAY_NAME_CHANGED,
PARTICIPANT_JOINED,
PARTICIPANT_LEFT,
PARTICIPANT_UPDATED,
@@ -233,20 +231,6 @@ MiddlewareRegistry.register(store => next => action => {
break;
}
- // TODO Remove this middleware when the local display name update flow is
- // fully brought into redux.
- case PARTICIPANT_DISPLAY_NAME_CHANGED: {
- if (typeof APP !== 'undefined') {
- const participant = getLocalParticipant(store.getState());
-
- if (participant && participant.id === action.id) {
- store.dispatch(changeLocalDisplayName(action.name));
- }
- }
-
- break;
- }
-
case RAISE_HAND_UPDATED: {
const { participant } = action;
let queue = getRaiseHandsQueue(store.getState());