Skip to content

Commit 4701e41

Browse files
committed
fixup: MissingRTCFocus error, fix confusion between domain/brand
1 parent b43defe commit 4701e41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

locales/en/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"generic_description": "Submitting debug logs will help us track down the problem.",
8686
"insufficient_capacity": "Insufficient capacity",
8787
"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.",
88-
"matrix_rtc_focus_missing": "The server is not configured to work with \"{{brand}}\". Please contact your server admin (Error Code: {{ errorCode }}).",
88+
"matrix_rtc_focus_missing": "The server is not configured to work with {{brand}}. Please contact your server admin (Domain: {{domain}}, Error Code: {{ errorCode }}).",
8989
"open_elsewhere": "Opened in another tab",
9090
"open_elsewhere_description": "{{brand}} has been opened in another tab. If that doesn't sound right, try reloading the page.",
9191
"unexpected_ec_error": "An unexpected error occurred (<0>Error Code:</0> <1>{{ errorCode }}</1>). Please contact your server administrator."

src/utils/ec-errors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export class MatrixRTCFocusMissingError extends ElementCallError {
5353
ErrorCode.MISSING_MATRIX_RTC_FOCUS,
5454
ErrorCategory.CONFIGURATION_ISSUE,
5555
t("error.matrix_rtc_focus_missing", {
56-
brand: domain,
56+
domain,
57+
brand: import.meta.env.VITE_PRODUCT_NAME || "Element Call",
5758
errorCode: ErrorCode.MISSING_MATRIX_RTC_FOCUS,
5859
}),
5960
);

0 commit comments

Comments
 (0)