rename url param to autoLeave

This commit is contained in:
Timo
2025-06-30 17:17:27 +02:00
committed by Timo K
parent 1ed9c9dbcf
commit b36e543049
2 changed files with 6 additions and 6 deletions

View File

@@ -215,7 +215,7 @@ export interface UrlConfiguration {
* is no one left in the call.
* This is one part to make the call matrixRTC session behave like a telephone call.
*/
telephoneAutoLeave: boolean;
autoLeaveWhenOthersLeft: boolean;
}
// If you need to add a new flag to this interface, prefer a name that describes
@@ -390,7 +390,7 @@ export const getUrlParams = (
skipLobby: false,
returnToLobby: false,
sendNotificationType: undefined,
telephoneAutoLeave: false,
autoLeaveWhenOthersLeft: false,
};
}
@@ -442,7 +442,7 @@ export const getUrlParams = (
"ring",
"notification",
]),
telephoneAutoLeave: parser.getFlag("telephoneAutoLeave"),
autoLeaveWhenOthersLeft: parser.getFlag("autoLeave"),
};
return {

View File

@@ -163,7 +163,7 @@ export const ActiveCall: FC<ActiveCallProps> = (props) => {
};
}, [livekitRoom]);
const { telephoneAutoLeave } = useUrlParams();
const { autoLeaveWhenOthersLeft } = useUrlParams();
useEffect(() => {
if (livekitRoom !== undefined) {
@@ -174,7 +174,7 @@ export const ActiveCall: FC<ActiveCallProps> = (props) => {
mediaDevices,
{
encryptionSystem: props.e2eeSystem,
autoLeaveWhenOthersLeft: telephoneAutoLeave,
autoLeaveWhenOthersLeft,
},
connStateObservable$,
reactionsReader.raisedHands$,
@@ -192,7 +192,7 @@ export const ActiveCall: FC<ActiveCallProps> = (props) => {
mediaDevices,
props.e2eeSystem,
connStateObservable$,
telephoneAutoLeave,
autoLeaveWhenOthersLeft,
]);
if (livekitRoom === undefined || vm === null) return null;