mirror of
https://github.com/vector-im/element-call.git
synced 2026-06-30 18:02:56 +00:00
Merge branch 'livekit' into toger5/view-model-call-footer-example
This commit is contained in:
@@ -1344,6 +1344,10 @@ export function createCallViewModel$(
|
||||
// Layout is edge-to-edge; show/hide the footer in response to interactions
|
||||
return windowMode$.pipe(
|
||||
switchMap((mode) => {
|
||||
if (mode === "pip" && platform !== "desktop") {
|
||||
// No controls are shown in mobile pip as interactions are disabled
|
||||
return of(false);
|
||||
}
|
||||
const showInitially = mode !== "flat";
|
||||
const timeout$ = mode === "flat" ? timer(showFooterMs) : NEVER;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user