Make it a const

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-07-25 15:23:00 +02:00
parent f3615b73fc
commit d8fcaa6eba

View File

@@ -37,6 +37,12 @@ import { findDeviceByName } from "../media-utils";
import { OpenIDLoader } from "../livekit/OpenIDLoader"; import { OpenIDLoader } from "../livekit/OpenIDLoader";
import { ActiveCall } from "./InCallView"; import { ActiveCall } from "./InCallView";
/**
* If there already is this many participants in the call, we automatically mute
* the user
*/
const MUTE_PARTICIPANT_COUNT = 8;
declare global { declare global {
interface Window { interface Window {
groupCall?: GroupCall; groupCall?: GroupCall;
@@ -295,7 +301,7 @@ export function GroupCallView({
setUserChoices(choices); setUserChoices(choices);
enter(); enter();
}} }}
initWithMutedAudio={participants.size > 8} initWithMutedAudio={participants.size > MUTE_PARTICIPANT_COUNT}
isEmbedded={isEmbedded} isEmbedded={isEmbedded}
hideHeader={hideHeader} hideHeader={hideHeader}
/> />