From b8e64f4e598f63de8a5c0605a85c91790d5927e7 Mon Sep 17 00:00:00 2001 From: Julian Jelfs Date: Sun, 17 Nov 2024 20:44:14 +0000 Subject: [PATCH] hack around type issue --- frontend/app/src/components/App.svelte | 3 ++- frontend/app/src/stores/video.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/src/components/App.svelte b/frontend/app/src/components/App.svelte index 9d784bdb89..6baa435ad5 100644 --- a/frontend/app/src/components/App.svelte +++ b/frontend/app/src/components/App.svelte @@ -97,7 +97,8 @@ setContext("client", client); let profileTrace = client.showTrace(); - let videoCallElement: ActiveCall; + // I can't (yet) find a way to avoid using "any" here. Will try to improve but need to commit this crime for the time being + let videoCallElement: any; let landingPageRoute = $derived(isLandingPageRoute($pathParams)); let homeRoute = $derived($pathParams.kind === "home_route"); let showLandingPage = $derived( diff --git a/frontend/app/src/stores/video.ts b/frontend/app/src/stores/video.ts index f2dff996ef..9b62e42cb9 100644 --- a/frontend/app/src/stores/video.ts +++ b/frontend/app/src/stores/video.ts @@ -113,6 +113,8 @@ function updateParticipant( }); } +export type ActiveVideoCallStore = typeof activeVideoCall; + export const activeVideoCall = { subscribe: activeStore.subscribe, setCall: (chatId: ChatIdentifier, messageId: bigint, call: DailyCall) => {