From d8d4e8942ce4b52c874b951e06e8d74a8e20f69c Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Wed, 6 Nov 2024 16:07:02 +0000 Subject: [PATCH] Readonly --- src/state/CallViewModel.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index 1035e9ab..10c56eea 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -220,7 +220,7 @@ interface LayoutScanState { class UserMedia { private readonly scope = new ObservableScope(); public readonly vm: UserMediaViewModel; - public participant: BehaviorSubject< + public readonly participant: BehaviorSubject< LocalParticipant | RemoteParticipant | undefined >; @@ -298,7 +298,9 @@ class UserMedia { class ScreenShare { public readonly vm: ScreenShareViewModel; - private participant: BehaviorSubject; + private readonly participant: BehaviorSubject< + LocalParticipant | RemoteParticipant + >; public constructor( id: string,