From f1635f51168bca31d79a93bf6ac6c0951d63f480 Mon Sep 17 00:00:00 2001 From: Julian Jelfs Date: Tue, 3 Dec 2024 12:10:26 +0000 Subject: [PATCH] hide video on landing pages (#6953) --- frontend/app/src/components/App.svelte | 1 + frontend/app/src/components/home/video/ActiveCall.svelte | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/src/components/App.svelte b/frontend/app/src/components/App.svelte index 9610b12dc1..ca76d40db3 100644 --- a/frontend/app/src/components/App.svelte +++ b/frontend/app/src/components/App.svelte @@ -473,6 +473,7 @@ page(routeForScope($chatListScope))} bind:this={videoCallElement} /> diff --git a/frontend/app/src/components/home/video/ActiveCall.svelte b/frontend/app/src/components/home/video/ActiveCall.svelte index ab5e3f0863..fbc3763f3e 100644 --- a/frontend/app/src/components/home/video/ActiveCall.svelte +++ b/frontend/app/src/components/home/video/ActiveCall.svelte @@ -43,9 +43,10 @@ interface Props { onClearSelection: () => void; + showLandingPage: boolean; } - let { onClearSelection }: Props = $props(); + let { onClearSelection, showLandingPage }: Props = $props(); const client = getContext("client"); @@ -348,6 +349,7 @@ class="video-call-container" class:visible={$activeVideoCall && $activeVideoCall.view !== "minimised" && + !showLandingPage && !(threadOpen && $mobileWidth) && !(participantsOpen && $mobileWidth) && chatIdentifiersEqual($activeVideoCall.chatId, $selectedChat?.id)}>