From 370d8bd5d599a42fcead3b038f6d25b111430047 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 2 Dec 2024 14:45:20 +0000 Subject: [PATCH] Review feedback --- src/state/CallViewModel.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index abd505f3..46106d1b 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -235,11 +235,10 @@ class UserMedia { participant: LocalParticipant | RemoteParticipant | undefined, encryptionSystem: EncryptionSystem, livekitRoom: LivekitRoom, - local: boolean, ) { this.participant = new BehaviorSubject(participant); - if (participant?.isLocal || local) { + if (participant?.isLocal) { this.vm = new LocalUserMediaViewModel( this.id, member, @@ -504,7 +503,6 @@ export class CallViewModel extends ViewModel { participant, this.encryptionSystem, this.livekitRoom, - livekitParticipantId === "local", ), ];