From 97ae11f656e16ca54d4217c07dd8ec2431ffea04 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 17 Oct 2022 12:31:56 -0400 Subject: [PATCH] Fix fullscreen buttons fullscreening the wrong feed --- src/room/InCallView.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index ed96b97..da6a6dc 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -224,11 +224,12 @@ export function InCallView({ // window is too small to show everyone const maximisedParticipant = useMemo( () => - fullscreenParticipant ?? (bounds.height <= 400 && bounds.width <= 400) + fullscreenParticipant ?? + (bounds.height <= 400 && bounds.width <= 400 ? items.find((item) => item.focused) ?? items.find((item) => item.callFeed) ?? null - : null, + : null), [fullscreenParticipant, bounds, items] );