Auto report group call errors to sentry (includes Missing RTC focus)

This commit is contained in:
Valere
2026-04-01 12:01:41 +02:00
parent bb7b2d1060
commit 993c848cea

View File

@@ -13,7 +13,9 @@ import {
type ReactNode, type ReactNode,
type SVGAttributes, type SVGAttributes,
useCallback, useCallback,
useEffect,
} from "react"; } from "react";
import * as Sentry from "@sentry/react";
import { Trans, useTranslation } from "react-i18next"; import { Trans, useTranslation } from "react-i18next";
import { import {
ErrorSolidIcon, ErrorSolidIcon,
@@ -78,6 +80,10 @@ const ErrorPage: FC<ErrorPageProps> = ({
}); });
} }
useEffect(() => {
Sentry.captureException(error);
}, [error]);
return ( return (
<FullScreenView> <FullScreenView>
<ErrorView <ErrorView