diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte index ddd892413..0abe8eef1 100644 --- a/src/lib/components/chat/MessageInput/CallOverlay.svelte +++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte @@ -54,7 +54,7 @@ const devices = await navigator.mediaDevices.enumerateDevices(); videoInputDevices = devices.filter((device) => device.kind === 'videoinput'); - if (navigator.mediaDevices.getDisplayMedia) { + if (!!navigator.mediaDevices.getDisplayMedia) { videoInputDevices = [ ...videoInputDevices, {