From b36e54304938e71192026d24f03788792799719a Mon Sep 17 00:00:00 2001 From: Timo Date: Mon, 30 Jun 2025 17:17:27 +0200 Subject: [PATCH] rename url param to `autoLeave` --- src/UrlParams.ts | 6 +++--- src/room/InCallView.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/UrlParams.ts b/src/UrlParams.ts index 94d7ced9..3ef19a14 100644 --- a/src/UrlParams.ts +++ b/src/UrlParams.ts @@ -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 { diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 16ed9c86..97f57bb1 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -163,7 +163,7 @@ export const ActiveCall: FC = (props) => { }; }, [livekitRoom]); - const { telephoneAutoLeave } = useUrlParams(); + const { autoLeaveWhenOthersLeft } = useUrlParams(); useEffect(() => { if (livekitRoom !== undefined) { @@ -174,7 +174,7 @@ export const ActiveCall: FC = (props) => { mediaDevices, { encryptionSystem: props.e2eeSystem, - autoLeaveWhenOthersLeft: telephoneAutoLeave, + autoLeaveWhenOthersLeft, }, connStateObservable$, reactionsReader.raisedHands$, @@ -192,7 +192,7 @@ export const ActiveCall: FC = (props) => { mediaDevices, props.e2eeSystem, connStateObservable$, - telephoneAutoLeave, + autoLeaveWhenOthersLeft, ]); if (livekitRoom === undefined || vm === null) return null;