From 655058a7e62f07dad14441777b8a2aec8e093a09 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Jul 2022 18:27:30 +0100 Subject: [PATCH] Remove the 'Take Me Home' link in embed mode --- src/room/GroupCallView.jsx | 1 + src/room/LobbyView.jsx | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/room/GroupCallView.jsx b/src/room/GroupCallView.jsx index 2d2d56b..2403bf6 100644 --- a/src/room/GroupCallView.jsx +++ b/src/room/GroupCallView.jsx @@ -144,6 +144,7 @@ export function GroupCallView({ toggleLocalVideoMuted={toggleLocalVideoMuted} toggleMicrophoneMuted={toggleMicrophoneMuted} roomId={roomId} + isEmbedded={isEmbedded} /> ); } diff --git a/src/room/LobbyView.jsx b/src/room/LobbyView.jsx index d4d03ef..de22db0 100644 --- a/src/room/LobbyView.jsx +++ b/src/room/LobbyView.jsx @@ -42,6 +42,7 @@ export function LobbyView({ toggleLocalVideoMuted, toggleMicrophoneMuted, roomId, + isEmbedded, }) { const { stream } = useCallFeed(localCallFeed); const { @@ -122,11 +123,13 @@ export function LobbyView({ Copy call link and join later - - - Take me Home - - + {!isEmbedded && ( + + + Take me Home + + + )} );