diff --git a/apps/meteor/client/lib/VideoConfManager.ts b/apps/meteor/client/lib/VideoConfManager.ts index 35f6cc2b549..257bcfd0184 100644 --- a/apps/meteor/client/lib/VideoConfManager.ts +++ b/apps/meteor/client/lib/VideoConfManager.ts @@ -170,7 +170,7 @@ export const VideoConfManager = new (class VideoConfManager extends Emitter, extraData?: Partial, ): Promise { - const callee = uids?.filter((uid) => uid !== user._id).pop(); - if (!callee) { + const calleeId = uids?.filter((uid) => uid !== user._id).pop(); + if (!calleeId) { // Are you trying to call yourself? throw new Error('invalid-call-target'); } @@ -629,7 +629,7 @@ export class VideoConfService extends ServiceClassInternal implements IVideoConf return { type: 'direct', callId, - callee, + calleeId, }; } diff --git a/packages/core-typings/src/IVideoConference.ts b/packages/core-typings/src/IVideoConference.ts index 5d36287aa9b..abf69392029 100644 --- a/packages/core-typings/src/IVideoConference.ts +++ b/packages/core-typings/src/IVideoConference.ts @@ -14,7 +14,7 @@ export enum VideoConferenceStatus { export type DirectCallInstructions = { type: 'direct'; - callee: IUser['_id']; + calleeId: IUser['_id']; callId: string; };