Revert "Fix widget condition"

This reverts commit 9296accdc5.
This commit is contained in:
Hugh Nimmo-Smith
2024-12-02 11:04:54 +00:00
parent 9296accdc5
commit e56baa6e5d

View File

@@ -75,7 +75,7 @@ export function useMuteStates(): MuteStates {
const { skipLobby } = useUrlParams(); const { skipLobby } = useUrlParams();
// In SPA without lobby we need to protect from unmuted joins (Privacy). // 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, () => { const audio = useMuteState(devices.audioInput, () => {
return Config.get().media_devices.enable_audio && allowStartUnmuted; return Config.get().media_devices.enable_audio && allowStartUnmuted;
}); });
@@ -91,7 +91,7 @@ export function useMuteStates(): MuteStates {
video_enabled: video.enabled, video_enabled: video.enabled,
}) })
.catch((e) => .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]); }, [audio, video]);