Merge branch 'toger5/allow-unmuted-join-in-widget' of https://github.com/element-hq/element-call into toger5/allow-unmuted-join-in-widget

This commit is contained in:
Hugh Nimmo-Smith
2024-12-02 09:46:16 +00:00

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 !== null;
const allowStartUnmuted = !skipLobby || !!widget;
const audio = useMuteState(devices.audioInput, () => {
return Config.get().media_devices.enable_audio && allowStartUnmuted;
});