This commit is contained in:
Timo
2025-07-24 14:30:23 +02:00
parent 206bd44a26
commit 3b106f15d9
+9 -15
View File
@@ -320,9 +320,7 @@ export const getUrlParams = (
: (parser.getEnumParam("intent", UserIntent) ?? UserIntent.Unknown); : (parser.getEnumParam("intent", UserIntent) ?? UserIntent.Unknown);
// Here we only use constants and `platform` to determine the intent preset. // Here we only use constants and `platform` to determine the intent preset.
let intentPreset: UrlConfiguration; let intentPreset: UrlConfiguration;
switch (intent) { const inAppDefault = {
case UserIntent.StartNewCall:
intentPreset = {
confineToRoom: true, confineToRoom: true,
appPrompt: false, appPrompt: false,
preload: true, preload: true,
@@ -334,23 +332,19 @@ export const getUrlParams = (
controlledAudioDevices: platform === "desktop" ? false : true, controlledAudioDevices: platform === "desktop" ? false : true,
skipLobby: true, skipLobby: true,
returnToLobby: false, returnToLobby: false,
sendNotificationType: "notification", sendNotificationType: "notification" as RTCNotificationType,
};
switch (intent) {
case UserIntent.StartNewCall:
intentPreset = {
...inAppDefault,
skipLobby: true,
}; };
break; break;
case UserIntent.JoinExistingCall: case UserIntent.JoinExistingCall:
intentPreset = { intentPreset = {
confineToRoom: true, ...inAppDefault,
appPrompt: false,
preload: true,
header: platform === "desktop" ? HeaderStyle.None : HeaderStyle.AppBar,
showControls: true,
hideScreensharing: false,
allowIceFallback: true,
perParticipantE2EE: true,
controlledAudioDevices: platform === "desktop" ? false : true,
skipLobby: false, skipLobby: false,
returnToLobby: false,
sendNotificationType: undefined,
}; };
break; break;
// Non widget usecase defaults // Non widget usecase defaults