diff --git a/locales/en/app.json b/locales/en/app.json index 428cba58..87830f82 100644 --- a/locales/en/app.json +++ b/locales/en/app.json @@ -87,7 +87,7 @@ "error": { "call_is_not_supported": "Call is not supported", "call_not_found": "Call not found", - "call_not_found_description": "<0>That link doesn't appear to belong to any existing call. Check that you have the right link, or <1>create a new one.", + "call_not_found_description": "<0>That link doesn't appear to belong to any existing call. Check that you have the right link, or <2>create a new one.", "connection_lost": "Connection lost", "connection_lost_description": "You were disconnected from the call.", "e2ee_unsupported": "Incompatible browser", diff --git a/src/ErrorView.module.css b/src/ErrorView.module.css index 14c5f141..bd68f5e3 100644 --- a/src/ErrorView.module.css +++ b/src/ErrorView.module.css @@ -12,6 +12,7 @@ .error > h1 { margin: 0; + text-align: center; } .error > p { diff --git a/src/ErrorView.tsx b/src/ErrorView.tsx index ed4103c5..1309ae04 100644 --- a/src/ErrorView.tsx +++ b/src/ErrorView.tsx @@ -99,7 +99,7 @@ export const ErrorView: FC = ({ return (
- + {title} diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 0ae6a96b..5b9b1f02 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -58,10 +58,9 @@ import { callEventAudioSounds } from "./CallEventAudioRenderer"; import { useLatest } from "../useLatest"; import { usePageTitle } from "../usePageTitle"; import { + ConnectionLostError, E2EENotSupportedError, ElementCallError, - ErrorCode, - RTCSessionError, UnknownCallError, } from "../utils/errors.ts"; import { GroupCallErrorBoundary } from "./GroupCallErrorBoundary.tsx"; @@ -153,14 +152,7 @@ export const GroupCallView: FC = ({ useTypedEventEmitter( rtcSession, MatrixRTCSessionEvent.MembershipManagerError, - (error) => { - setExternalError( - new RTCSessionError( - ErrorCode.MEMBERSHIP_MANAGER_UNRECOVERABLE, - error.message ?? error, - ), - ); - }, + (error) => setExternalError(new ConnectionLostError()), ); useEffect(() => { // Sanity check the room object diff --git a/src/room/__snapshots__/GroupCallErrorBoundary.test.tsx.snap b/src/room/__snapshots__/GroupCallErrorBoundary.test.tsx.snap index 6fd1ab40..79eb580b 100644 --- a/src/room/__snapshots__/GroupCallErrorBoundary.test.tsx.snap +++ b/src/room/__snapshots__/GroupCallErrorBoundary.test.tsx.snap @@ -112,6 +112,7 @@ exports[`ConnectionLostError: Action handling should reset error state 1`] = ` data-size="large" >