mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
Improve docs
This commit is contained in:
@@ -23,7 +23,7 @@ import { useUrlParams } from "../UrlParams";
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If there already are this many participants in the call, we automatically mute
|
* If there already are this many participants in the call, we automatically mute
|
||||||
* the user.
|
* the user when they join a call.
|
||||||
*/
|
*/
|
||||||
export const MUTE_PARTICIPANT_COUNT = 8;
|
export const MUTE_PARTICIPANT_COUNT = 8;
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ export function useMuteStates(): MuteStates {
|
|||||||
const devices = useMediaDevices();
|
const devices = useMediaDevices();
|
||||||
|
|
||||||
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 for privacy.
|
||||||
const allowStartUnmuted = !skipLobby || !!widget;
|
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