Review feedback

This commit is contained in:
Hugh Nimmo-Smith
2024-12-02 14:45:20 +00:00
parent 7fdcbb3292
commit 370d8bd5d5

View File

@@ -235,11 +235,10 @@ class UserMedia {
participant: LocalParticipant | RemoteParticipant | undefined, participant: LocalParticipant | RemoteParticipant | undefined,
encryptionSystem: EncryptionSystem, encryptionSystem: EncryptionSystem,
livekitRoom: LivekitRoom, livekitRoom: LivekitRoom,
local: boolean,
) { ) {
this.participant = new BehaviorSubject(participant); this.participant = new BehaviorSubject(participant);
if (participant?.isLocal || local) { if (participant?.isLocal) {
this.vm = new LocalUserMediaViewModel( this.vm = new LocalUserMediaViewModel(
this.id, this.id,
member, member,
@@ -504,7 +503,6 @@ export class CallViewModel extends ViewModel {
participant, participant,
this.encryptionSystem, this.encryptionSystem,
this.livekitRoom, this.livekitRoom,
livekitParticipantId === "local",
), ),
]; ];