This commit is contained in:
Timo
2024-11-29 16:52:29 +01:00
parent 20f3ced96e
commit cc85ed08a4

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 !== null; 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;
}); });