Fix widget condition

This commit is contained in:
Hugh Nimmo-Smith
2024-12-02 11:03:29 +00:00
parent a5b9378d60
commit 9296accdc5

View File

@@ -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", e),
logger.warn("Could not send DeviceMute action to widget host", e),
);
}, [audio, video]);