diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index b1d64a7c..f8f44069 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -663,9 +663,11 @@ export class CallViewModel extends ViewModel { switchMap((mediaItems) => { const localUserMedia = mediaItems.find( (m) => m.vm instanceof LocalUserMediaViewModel, - ) as LocalUserMediaViewModel | undefined; + ) as UserMedia | undefined; return ( - localUserMedia?.alwaysShow?.pipe( + ( + localUserMedia?.vm as LocalUserMediaViewModel + ).alwaysShow.pipe( map((alwaysShow) => alwaysShow ? localUserMedia : undefined, ),