From 072ce452b7076b8304da9bb45afbed2621c047c0 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 30 Nov 2022 16:44:20 +0000 Subject: [PATCH] Catch the error that's thrown when no api_key is found (no daily) (#5696) * fix/event-type-location-select (#5692) * Fixed dialog components usage * Fix styles * Catch the error that's thrown when no api_key is found (no daily install) Co-authored-by: alannnc Co-authored-by: Peer Richelsen --- packages/core/videoClient.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/core/videoClient.ts b/packages/core/videoClient.ts index edec7f0553..f9d1e3e88f 100644 --- a/packages/core/videoClient.ts +++ b/packages/core/videoClient.ts @@ -134,13 +134,19 @@ const deleteMeeting = (credential: CredentialPayload, uid: string): Promise { + let dailyAppKeys: Awaited>; + try { + dailyAppKeys = await getDailyAppKeys(); + } catch (e) { + return; + } const [videoAdapter] = getVideoAdapters([ { id: 0, appId: "daily-video", type: "daily_video", userId: null, - key: await getDailyAppKeys(), + key: dailyAppKeys, }, ]); return videoAdapter?.createMeeting(calEvent);