mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +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();
|
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;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user