From ef26299317fa953b8badea69461aaddfe6c5ff66 Mon Sep 17 00:00:00 2001 From: Kristian Martinoski Date: Mon, 4 Nov 2024 14:11:09 +0100 Subject: [PATCH] fix: do not show shareScreenOverlay when alone participant on call in spotlight layout --- .../Call/CallLayout/CallParticipantsSpotlight.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/react-native-sdk/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx b/packages/react-native-sdk/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx index 231246a106..2b6d8f5316 100644 --- a/packages/react-native-sdk/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +++ b/packages/react-native-sdk/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx @@ -91,6 +91,11 @@ export const CallParticipantsSpotlight = ({ marginHorizontal: landscape ? 0 : 8, }; + const showShareScreenOverlay = + participantInSpotlight?.isLocalParticipant && + isScreenShareOnSpotlight && + ScreenShareOverlay; + return ( {participantInSpotlight && ParticipantView && - (participantInSpotlight.isLocalParticipant && ScreenShareOverlay ? ( + (showShareScreenOverlay ? ( ) : (