diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 831ee9194..fbd589e78 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -555,6 +555,9 @@ export const GroupCallView: FC = ({ }} onError={(_error) => { if (rtcSession.isJoined()) onLeft("error"); + // If there is an error we need to be able to close the widget. This is done in `onLeft` as well + // We need it here explicitly in case rtcSession.isJoined is false. + void widget?.api.setAlwaysOnScreen(false); }} > {body}