rename to callPickupState

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-08-25 14:31:14 +02:00
parent acd26c61ef
commit fb8de061f3
3 changed files with 26 additions and 22 deletions

View File

@@ -218,7 +218,7 @@ export interface UrlConfiguration {
autoLeaveWhenOthersLeft: boolean;
/**
* If the client should show behave like it is awaiting an answer if a notification was sent.
* If the client should behave like it is awaiting an answer if a notification was sent (wait for call pick up).
* This is a no-op if not combined with sendNotificationType.
*
* This entails:
@@ -226,7 +226,7 @@ export interface UrlConfiguration {
* - play a sound that indicates that it is awaiting an answer
* - auto-dismiss the call widget once the notification lifetime expires on the receivers side.
*/
awaitingAnswer: boolean;
shouldWaitForCallPickup: boolean;
}
// If you need to add a new flag to this interface, prefer a name that describes
@@ -358,6 +358,7 @@ export const getUrlParams = (
returnToLobby: false,
sendNotificationType: "notification" as RTCNotificationType,
autoLeaveWhenOthersLeft: false,
shouldWaitForCallPickup: false,
};
switch (intent) {
case UserIntent.StartNewCall:
@@ -377,6 +378,7 @@ export const getUrlParams = (
...inAppDefault,
skipLobby: true,
autoLeaveWhenOthersLeft: true,
shouldWaitForCallPickup: true,
};
break;
case UserIntent.JoinExistingCallDM:
@@ -402,6 +404,7 @@ export const getUrlParams = (
returnToLobby: false,
sendNotificationType: undefined,
autoLeaveWhenOthersLeft: false,
shouldWaitForCallPickup: false,
};
}
@@ -453,7 +456,7 @@ export const getUrlParams = (
"ring",
"notification",
]),
awaitingAnswer: parser.getFlag("showAwaitingAnswerFeedback"),
shouldWaitForCallPickup: parser.getFlag("shouldWaitForCallPickup"),
autoLeaveWhenOthersLeft: parser.getFlag("autoLeave"),
};