Skip to content

Commit

Permalink
hide video on landing pages (#6953)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Dec 3, 2024
1 parent 072fd20 commit f1635f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/app/src/components/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@
<Head />

<ActiveCall
{showLandingPage}
onClearSelection={() => page(routeForScope($chatListScope))}
bind:this={videoCallElement} />

Expand Down
4 changes: 3 additions & 1 deletion frontend/app/src/components/home/video/ActiveCall.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
interface Props {
onClearSelection: () => void;
showLandingPage: boolean;
}
let { onClearSelection }: Props = $props();
let { onClearSelection, showLandingPage }: Props = $props();
const client = getContext<OpenChat>("client");
Expand Down Expand Up @@ -348,6 +349,7 @@
class="video-call-container"
class:visible={$activeVideoCall &&
$activeVideoCall.view !== "minimised" &&
!showLandingPage &&
!(threadOpen && $mobileWidth) &&
!(participantsOpen && $mobileWidth) &&
chatIdentifiersEqual($activeVideoCall.chatId, $selectedChat?.id)}>
Expand Down

0 comments on commit f1635f5

Please sign in to comment.