From b5f5edba0925b70c0466c5417bd77f6499ce2179 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 4 Mar 2025 15:06:47 -0500 Subject: [PATCH] Fix the control flow of GroupCallView render function 2bb5b020e60c3d8b6034be799db42fa3d3164cc4 refactored the end of the GroupCallView render function to not use any early returns, and clumsily failed to account for the fall-through case that makes returnToLobby work (as opposed to sitting on a blank screen). --- src/room/GroupCallView.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 95d1d12c..66f14821 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -495,9 +495,7 @@ export const GroupCallView: FC = ({ } } else if (left && widget !== null) { // Left in widget mode: - if (!returnToLobby) { - body = null; - } + body = returnToLobby ? lobbyView : null; } else if (preload || skipLobby) { body = null; } else {