From edb53ae0496a93022a37dbfb5a3a2aa0721e0937 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Wed, 20 Nov 2024 10:24:38 +0000 Subject: [PATCH] Fix --- src/state/CallViewModel.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index f8f44069..a4c712b4 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -668,8 +668,11 @@ export class CallViewModel extends ViewModel { ( localUserMedia?.vm as LocalUserMediaViewModel ).alwaysShow.pipe( - map((alwaysShow) => - alwaysShow ? localUserMedia : undefined, + map( + (alwaysShow) => + (alwaysShow + ? localUserMedia?.vm + : undefined) ?? null, ), ) ?? of(null) );