mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
remove deprecated url params
This commit is contained in:
@@ -260,9 +260,5 @@ describe("UrlParams", () => {
|
|||||||
);
|
);
|
||||||
expect(getUrlParams("?header=none&hideHeader=false").header).toBe("none");
|
expect(getUrlParams("?header=none&hideHeader=false").header).toBe("none");
|
||||||
});
|
});
|
||||||
it("converts hideHeader to the correct header value", () => {
|
|
||||||
expect(getUrlParams("?hideHeader=true").header).toBe("none");
|
|
||||||
expect(getUrlParams("?hideHeader=false").header).toBe("standard");
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -399,28 +399,17 @@ export const getUrlParams = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
const configuration: Partial<UrlConfiguration> = {
|
const configuration: Partial<UrlConfiguration> = {
|
||||||
// This flag has 'embed' as an alias for historical reasons
|
confineToRoom: parser.getFlag("confineToRoom"),
|
||||||
confineToRoom: parser.getFlag("confineToRoom") ?? parser.getFlag("embed"),
|
|
||||||
appPrompt: parser.getFlag("appPrompt"),
|
appPrompt: parser.getFlag("appPrompt"),
|
||||||
preload: isWidget ? parser.getFlag("preload") : undefined,
|
preload: isWidget ? parser.getFlag("preload") : undefined,
|
||||||
// Check hideHeader for backwards compatibility. If header is set, hideHeader
|
// Check hideHeader for backwards compatibility. If header is set, hideHeader
|
||||||
// is ignored.
|
// is ignored.
|
||||||
header:
|
header: parser.getEnumParam("header", HeaderStyle),
|
||||||
(parser.getParam("header") as HeaderStyle) ??
|
|
||||||
(parser.getFlag("hideHeader") !== undefined
|
|
||||||
? parser.getFlagParam("hideHeader")
|
|
||||||
? HeaderStyle.None
|
|
||||||
: HeaderStyle.Standard
|
|
||||||
: undefined),
|
|
||||||
showControls: parser.getFlag("showControls"),
|
showControls: parser.getFlag("showControls"),
|
||||||
hideScreensharing: parser.getFlag("hideScreensharing"),
|
hideScreensharing: parser.getFlag("hideScreensharing"),
|
||||||
allowIceFallback: parser.getFlag("allowIceFallback"),
|
allowIceFallback: parser.getFlag("allowIceFallback"),
|
||||||
perParticipantE2EE: parser.getFlag("perParticipantE2EE"),
|
perParticipantE2EE: parser.getFlag("perParticipantE2EE"),
|
||||||
controlledAudioDevices:
|
controlledAudioDevices: parser.getFlag("controlledAudioDevices"),
|
||||||
parser.getFlag(
|
|
||||||
"controlledAudioDevices",
|
|
||||||
// the deprecated property name
|
|
||||||
) ?? parser.getFlag("controlledMediaDevices"),
|
|
||||||
skipLobby: isWidget ? parser.getFlag("skipLobby") : false,
|
skipLobby: isWidget ? parser.getFlag("skipLobby") : false,
|
||||||
// In SPA mode the user should always exit to the home screen when hanging
|
// In SPA mode the user should always exit to the home screen when hanging
|
||||||
// up, rather than being sent back to the lobby
|
// up, rather than being sent back to the lobby
|
||||||
|
|||||||
Reference in New Issue
Block a user