Merge pull request #448 from vector-im/dbkr/country_roads

Remove the 'Take Me Home' link in embed mode
This commit is contained in:
David Baker 2022-07-06 22:01:54 +01:00 committed by GitHub
commit c6030d33ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -144,6 +144,7 @@ export function GroupCallView({
toggleLocalVideoMuted={toggleLocalVideoMuted} toggleLocalVideoMuted={toggleLocalVideoMuted}
toggleMicrophoneMuted={toggleMicrophoneMuted} toggleMicrophoneMuted={toggleMicrophoneMuted}
roomId={roomId} roomId={roomId}
isEmbedded={isEmbedded}
/> />
); );
} }

View file

@ -42,6 +42,7 @@ export function LobbyView({
toggleLocalVideoMuted, toggleLocalVideoMuted,
toggleMicrophoneMuted, toggleMicrophoneMuted,
roomId, roomId,
isEmbedded,
}) { }) {
const { stream } = useCallFeed(localCallFeed); const { stream } = useCallFeed(localCallFeed);
const { const {
@ -122,11 +123,13 @@ export function LobbyView({
Copy call link and join later Copy call link and join later
</CopyButton> </CopyButton>
</div> </div>
{!isEmbedded && (
<Body className={styles.joinRoomFooter}> <Body className={styles.joinRoomFooter}>
<Link color="primary" to="/"> <Link color="primary" to="/">
Take me Home Take me Home
</Link> </Link>
</Body> </Body>
)}
</div> </div>
</div> </div>
); );