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

@@ -77,6 +77,7 @@ interface Props {
localScreenshareFeed: CallFeed;
roomIdOrAlias: string;
unencryptedEventsFromUsers: Set<string>;
hideHeader: boolean;
}
export interface Participant {
@@ -105,6 +106,7 @@ export function InCallView({
localScreenshareFeed,
roomIdOrAlias,
unencryptedEventsFromUsers,
hideHeader,
}: Props) {
usePreventScroll();
const elementRef = useRef<HTMLDivElement>();
@@ -246,7 +248,7 @@ export function InCallView({
audioDestination={audioDestination}
/>
)}
{!fullscreenParticipant && (
{!hideHeader && !fullscreenParticipant && (
<Header>
<LeftNav>
<RoomHeaderInfo roomName={roomName} avatarUrl={avatarUrl} />