diff --git a/src/components/structures/auth/SessionLockStolenView.tsx b/src/components/structures/auth/SessionLockStolenView.tsx index de93624df1..7b82557ea4 100644 --- a/src/components/structures/auth/SessionLockStolenView.tsx +++ b/src/components/structures/auth/SessionLockStolenView.tsx @@ -28,7 +28,7 @@ export function SessionLockStolenView(): JSX.Element { return ( -

{_t("common|error")}

+

{_t("error_app_open_in_another_tab_title", { brand })}

{_t("error_app_open_in_another_tab", { brand })}

); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 362ae7e55c..d9f472c232 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1056,7 +1056,8 @@ "unknown_error_code": "unknown error code", "update_power_level": "Failed to change power level" }, - "error_app_open_in_another_tab": "%(brand)s has been opened in another tab.", + "error_app_open_in_another_tab": "Switch to the other tab to connect to %(brand)s. This tab can now be closed.", + "error_app_open_in_another_tab_title": "%(brand)s is connected in another tab", "error_app_opened_in_another_window": "%(brand)s is open in another window. Click \"%(label)s\" to use %(brand)s here and disconnect the other window.", "error_database_closed_description": "This may be caused by having the app open in multiple tabs or due to clearing browser data.", "error_database_closed_title": "Database unexpectedly closed", diff --git a/test/components/structures/MatrixChat-test.tsx b/test/components/structures/MatrixChat-test.tsx index 8698036ba9..7e4960fc23 100644 --- a/test/components/structures/MatrixChat-test.tsx +++ b/test/components/structures/MatrixChat-test.tsx @@ -1325,7 +1325,7 @@ describe("", () => { await flushPromises(); // now we should see the error page - rendered.getByText("Test has been opened in another tab."); + rendered.getByText("Test is connected in another tab"); // let initCrypto complete, and check we don't get a modal initCryptoCompleteDefer.resolve(); diff --git a/test/components/structures/__snapshots__/MatrixChat-test.tsx.snap b/test/components/structures/__snapshots__/MatrixChat-test.tsx.snap index a5280f599a..338499ac3d 100644 --- a/test/components/structures/__snapshots__/MatrixChat-test.tsx.snap +++ b/test/components/structures/__snapshots__/MatrixChat-test.tsx.snap @@ -6,10 +6,10 @@ exports[` Multi-tab lockout shows the lockout page when a second t class="mx_SessionLockStolenView mx_SplashPage" >

- Error + Test is connected in another tab

- Test has been opened in another tab. + Switch to the other tab to connect to Test. This tab can now be closed.

@@ -22,10 +22,10 @@ exports[` Multi-tab lockout shows the lockout page when a second t class="mx_SessionLockStolenView mx_SplashPage" >

- Error + Test is connected in another tab

- Test has been opened in another tab. + Switch to the other tab to connect to Test. This tab can now be closed.

@@ -38,10 +38,10 @@ exports[` Multi-tab lockout shows the lockout page when a second t class="mx_SessionLockStolenView mx_SplashPage" >

- Error + Test is connected in another tab

- Test has been opened in another tab. + Switch to the other tab to connect to Test. This tab can now be closed.

@@ -53,10 +53,10 @@ exports[` Multi-tab lockout shows the lockout page when a second t class="mx_SessionLockStolenView mx_SplashPage" >

- Error + Test is connected in another tab

- Test has been opened in another tab. + Switch to the other tab to connect to Test. This tab can now be closed.