mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
Auto report group call errors to sentry (includes Missing RTC focus)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user