From e56baa6e5d847d66a1d669c88fe5964651c62db2 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 2 Dec 2024 11:04:54 +0000 Subject: [PATCH] Revert "Fix widget condition" This reverts commit 9296accdc58d3690aa93aa0bc1c74334f0304fb8. --- src/room/MuteStates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/room/MuteStates.ts b/src/room/MuteStates.ts index 25680d3f..7d1061a2 100644 --- a/src/room/MuteStates.ts +++ b/src/room/MuteStates.ts @@ -75,7 +75,7 @@ export function useMuteStates(): MuteStates { const { skipLobby } = useUrlParams(); // In SPA without lobby we need to protect from unmuted joins (Privacy). - const allowStartUnmuted = !skipLobby || !widget; + const allowStartUnmuted = !skipLobby || !!widget; const audio = useMuteState(devices.audioInput, () => { return Config.get().media_devices.enable_audio && allowStartUnmuted; }); @@ -91,7 +91,7 @@ export function useMuteStates(): MuteStates { video_enabled: video.enabled, }) .catch((e) => - logger.warn("Could not send DeviceMute action to widget host", e), + logger.warn("Could not send DeviceMute action to widget", e), ); }, [audio, video]);