Add a URL parameter for hiding the room header

This commit is contained in:
Robin Townsend
2022-09-09 02:04:53 -04:00
parent ca5ce7d468
commit 3186b5f24b
6 changed files with 53 additions and 22 deletions

View File

@@ -24,6 +24,8 @@ export interface RoomParams {
// Whether the app is running in embedded mode, and should keep the user
// confined to the current room
isEmbedded: boolean;
// Whether to hide the room header when in a call
hideHeader: boolean;
// Whether to start a walkie-talkie call instead of a video call
isPtt: boolean;
// Whether to use end-to-end encryption
@@ -75,6 +77,7 @@ export const getRoomParams = (
roomId: getParam("roomId"),
viaServers: getAllParams("via"),
isEmbedded: hasParam("embed"),
hideHeader: hasParam("hideHeader"),
isPtt: hasParam("ptt"),
e2eEnabled: getParam("enableE2e") !== "false", // Defaults to true
userId: getParam("userId"),