From 43ce68e80afb4fc61ebfcac7219acc94b1d694e6 Mon Sep 17 00:00:00 2001 From: "Timo K." Date: Mon, 17 Aug 2026 12:08:30 +0200 Subject: [PATCH] Fix: error screen cannot be closed in embedded mode. --- src/room/GroupCallView.tsx | 3 +++ 1 file changed, 3 insertions(+) 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}