mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user