Merge pull request #4171 from element-hq/toger5/fix-unclose-able-error-screen

Fix: error screen cannot be closed in embedded mode.
This commit is contained in:
Timo
2026-08-17 14:16:37 +02:00
committed by GitHub

View File

@@ -555,6 +555,9 @@ export const GroupCallView: FC<Props> = ({
}} }}
onError={(_error) => { onError={(_error) => {
if (rtcSession.isJoined()) onLeft("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} {body}