From 0baf01e221ed0fcbe1bfc67b85a58e06045befe2 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:54:51 -0500 Subject: [PATCH] Update link for support on database error --- _locales/en/messages.json | 2 +- app/main.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ec62034d5..753b7f376 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -112,7 +112,7 @@ "description": "Title of a popup if the database cannot start up properly" }, "icu:databaseError__detail": { - "messageformat": "A database error occurred. You can copy the error and contact Signal support to help fix the issue. If you need to use Signal right away, you can delete your data and restart.\n\nContact support by visiting: https://support.signal.org/hc/requests/new?desktop", + "messageformat": "A database error occurred. You can copy the error and contact Signal support to help fix the issue. If you need to use Signal right away, you can delete your data and restart.\n\nContact support by visiting: {link}", "description": "Description shown in a popup if the database cannot start up properly" }, "icu:deleteAndRestart": { diff --git a/app/main.ts b/app/main.ts index 7ed23808a..8388480e6 100644 --- a/app/main.ts +++ b/app/main.ts @@ -1645,6 +1645,7 @@ const onDatabaseError = async (error: string) => { const buttons = [i18n('icu:copyErrorAndQuit')]; const copyErrorAndQuitButtonIndex = 0; + const SIGNAL_SUPPORT_LINK = 'https://support.signal.org/error'; if (error.includes(DBVersionFromFutureError.name)) { // If the DB version is too new, the user likely opened an older version of Signal, @@ -1654,7 +1655,9 @@ const onDatabaseError = async (error: string) => { } else { // Otherwise, this is some other kind of DB error, let's give them the option to // delete. - messageDetail = i18n('icu:databaseError__detail'); + messageDetail = i18n('icu:databaseError__detail', { + link: SIGNAL_SUPPORT_LINK, + }); buttons.push(i18n('icu:deleteAndRestart')); deleteAllDataButtonIndex = 1;