Fix: error screen cannot be closed in embedded mode.

This commit is contained in:
Timo K.
2026-08-17 12:08:30 +02:00
parent 4a5141406e
commit 43ce68e80a

View File

@@ -555,6 +555,9 @@ export const GroupCallView: FC<Props> = ({
}}
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}