From 1fefafb254dc2ade19091c9571a468528c6d3718 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 12 Jun 2024 11:44:05 -0700 Subject: [PATCH] refac --- src/lib/components/chat/MessageInput.svelte | 2 +- src/lib/components/chat/MessageInput/CallOverlay.svelte | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 50414634b..46cc4ad93 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -935,7 +935,7 @@ } // check if user has access to getUserMedia try { - await navigator.mediaDevices.getUserMedia({ audio: true, video: true }); + await navigator.mediaDevices.getUserMedia({ audio: true }); // If the user grants the permission, proceed to show the call overlay showCallOverlay.set(true); diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte index 295750c9e..3b85d73d1 100644 --- a/src/lib/components/chat/MessageInput/CallOverlay.svelte +++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte @@ -626,7 +626,8 @@