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

@@ -97,6 +97,7 @@ interface Props {
userMediaFeeds: CallFeed[];
onLeave: () => void;
isEmbedded: boolean;
hideHeader: boolean;
}
export const PTTCallView: React.FC<Props> = ({
@@ -109,6 +110,7 @@ export const PTTCallView: React.FC<Props> = ({
userMediaFeeds,
onLeave,
isEmbedded,
hideHeader,
}) => {
const { modalState: inviteModalState, modalProps: inviteModalProps } =
useModalTriggerState();
@@ -176,7 +178,7 @@ export const PTTCallView: React.FC<Props> = ({
// https://github.com/vector-im/element-call/issues/328
show={false}
/>
{showControls && (
{!hideHeader && showControls && (
<Header className={styles.header}>
<LeftNav>
<RoomSetupHeaderInfo