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(participants) don't treat Jigasi like a fake participant

Saúl Ibarra Corretgé88f8f48465c3
diff --git a/react/features/base/participants/functions.ts b/react/features/base/participants/functions.ts
index e46b86cdfa..6c7774d82f 100644
--- a/react/features/base/participants/functions.ts
+++ b/react/features/base/participants/functions.ts
@@ -32,7 +32,7 @@ const AVATAR_CHECKED_URLS = new Map();
/* eslint-disable arrow-body-style, no-unused-vars */
const AVATAR_CHECKER_FUNCTIONS = [
(participant: IParticipant) => {
- return isJigasiParticipant(participant) ? JIGASI_PARTICIPANT_ICON : null;
+ return participant?.isJigasi ? JIGASI_PARTICIPANT_ICON : null;
},
(participant: IParticipant) => {
return isWhiteboardParticipant(participant) ? WHITEBOARD_PARTICIPANT_ICON : null;
@@ -281,16 +281,6 @@ export function getFakeParticipants(stateful: IStateful) {
return toState(stateful)['features/base/participants'].fakeParticipants;
}
-/**
- * Returns whether the fake participant is Jigasi.
- *
- * @param {IParticipant|undefined} participant - The participant entity.
- * @returns {boolean} - True if it's a Jigasi participant.
- */
-function isJigasiParticipant(participant?: IParticipant): boolean {
- return participant?.fakeParticipant === FakeParticipant.Jigasi;
-}
-
/**
* Returns whether the fake participant is a local screenshare.
*
diff --git a/react/features/base/participants/middleware.ts b/react/features/base/participants/middleware.ts
index 618c75bfd9..f2ea704347 100644
--- a/react/features/base/participants/middleware.ts
+++ b/react/features/base/participants/middleware.ts
@@ -80,7 +80,7 @@ import {
} from './functions';
import logger from './logger';
import { PARTICIPANT_JOINED_FILE, PARTICIPANT_LEFT_FILE } from './sounds';
-import { FakeParticipant, IJitsiParticipant } from './types';
+import { IJitsiParticipant } from './types';
import './subscriber';
@@ -438,7 +438,7 @@ StateListenerRegistry.register(
store.dispatch(participantUpdated({
conference,
id: participant.getId(),
- fakeParticipant: value ? FakeParticipant.Jigasi : undefined
+ isJigasi: value
})),
// eslint-disable-next-line @typescript-eslint/no-unused-vars
'features_screen-sharing': (participant: IJitsiParticipant, value: string) =>
diff --git a/react/features/base/participants/types.ts b/react/features/base/participants/types.ts
index de5e940627..7134c6ec50 100644
--- a/react/features/base/participants/types.ts
+++ b/react/features/base/participants/types.ts
@@ -1,5 +1,4 @@
export enum FakeParticipant {
- Jigasi = 'Jigasi',
LocalScreenShare = 'LocalScreenShare',
RemoteScreenShare = 'RemoteScreenShare',
SharedVideo = 'SharedVideo',
@@ -21,6 +20,7 @@ export interface IParticipant {
};
getId?: Function;
id: string;
+ isJigasi?: boolean;
isReplaced?: boolean;
isReplacing?: number;
jwtId?: string;