Merge pull request #3637 from robintown/flat-layout-switch

Allow user to switch layouts while phone is in landscape
This commit is contained in:
Timo
2025-12-16 11:53:25 +01:00
committed by GitHub
3 changed files with 168 additions and 274 deletions

View File

@@ -952,11 +952,12 @@ export function createCallViewModel$(
),
);
const hasRemoteScreenShares$: Observable<boolean> = spotlight$.pipe(
map((spotlight) =>
spotlight.some((vm) => !vm.local && vm instanceof ScreenShareViewModel),
const hasRemoteScreenShares$ = scope.behavior<boolean>(
spotlight$.pipe(
map((spotlight) =>
spotlight.some((vm) => !vm.local && vm instanceof ScreenShareViewModel),
),
),
distinctUntilChanged(),
);
const pipEnabled$ = scope.behavior(setPipEnabled$, false);