diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index 8973bec5..2e802b53 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -609,12 +609,6 @@ export class CallViewModel extends ViewModel { this.scope.state(), ); - private readonly hasRemoteScreenShares: Observable = - this.screenShares.pipe( - map((ms) => ms.some((m) => !m.vm.local)), - distinctUntilChanged(), - ); - private readonly spotlightSpeaker: Observable< UserMediaViewModel | undefined > = this.userMedia.pipe( @@ -729,6 +723,12 @@ export class CallViewModel extends ViewModel { this.scope.state(), ); + private readonly hasRemoteScreenShares: Observable = + this.screenShares.pipe( + map((ms) => ms.some((m) => !m.vm.local)), + distinctUntilChanged(), + ); + private readonly pip: Observable = this.spotlightAndPip.pipe(switchMap(([, pip]) => pip));