From 4701e413fd2a84f4b688096de26987312d379802 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 27 Feb 2025 10:09:26 +0100 Subject: [PATCH] fixup: MissingRTCFocus error, fix confusion between domain/brand --- locales/en/app.json | 2 +- src/utils/ec-errors.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/locales/en/app.json b/locales/en/app.json index d1c1c896..8526cea6 100644 --- a/locales/en/app.json +++ b/locales/en/app.json @@ -85,7 +85,7 @@ "generic_description": "Submitting debug logs will help us track down the problem.", "insufficient_capacity": "Insufficient capacity", "insufficient_capacity_description": "The server has reached its maximum capacity and you cannot join the call at this time. Try again later, or contact your server admin if the problem persists.", - "matrix_rtc_focus_missing": "The server is not configured to work with \"{{brand}}\". Please contact your server admin (Error Code: {{ errorCode }}).", + "matrix_rtc_focus_missing": "The server is not configured to work with {{brand}}. Please contact your server admin (Domain: {{domain}}, Error Code: {{ errorCode }}).", "open_elsewhere": "Opened in another tab", "open_elsewhere_description": "{{brand}} has been opened in another tab. If that doesn't sound right, try reloading the page.", "unexpected_ec_error": "An unexpected error occurred (<0>Error Code: <1>{{ errorCode }}). Please contact your server administrator." diff --git a/src/utils/ec-errors.ts b/src/utils/ec-errors.ts index c41759f8..0ba87249 100644 --- a/src/utils/ec-errors.ts +++ b/src/utils/ec-errors.ts @@ -53,7 +53,8 @@ export class MatrixRTCFocusMissingError extends ElementCallError { ErrorCode.MISSING_MATRIX_RTC_FOCUS, ErrorCategory.CONFIGURATION_ISSUE, t("error.matrix_rtc_focus_missing", { - brand: domain, + domain, + brand: import.meta.env.VITE_PRODUCT_NAME || "Element Call", errorCode: ErrorCode.MISSING_MATRIX_RTC_FOCUS, }), );