Skip to content

Commit

Permalink
Fix widget condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Dec 2, 2024
1 parent a5b9378 commit 9296acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/room/MuteStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand All @@ -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]);

Expand Down

0 comments on commit 9296acc

Please sign in to comment.