mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Add debug log url when submitting it to Support
This commit is contained in:
46
app/main.ts
46
app/main.ts
@@ -34,6 +34,7 @@ import * as GlobalErrors from './global_errors';
|
||||
import { setup as setupCrashReports } from './crashReports';
|
||||
import { setup as setupSpellChecker } from './spell_check';
|
||||
import { redactAll, addSensitivePath } from '../ts/util/privacy';
|
||||
import { createSupportUrl } from '../ts/util/createSupportUrl';
|
||||
import { missingCaseError } from '../ts/util/missingCaseError';
|
||||
import { strictAssert } from '../ts/util/assert';
|
||||
import { consoleLogger } from '../ts/util/consoleLogger';
|
||||
@@ -914,51 +915,8 @@ ipc.once('ready-for-updates', readyForUpdates);
|
||||
const TEN_MINUTES = 10 * 60 * 1000;
|
||||
setTimeout(readyForUpdates, TEN_MINUTES);
|
||||
|
||||
// the support only provides a subset of languages available within the app
|
||||
// so we have to list them out here and fallback to english if not included
|
||||
|
||||
const SUPPORT_LANGUAGES = [
|
||||
'ar',
|
||||
'bn',
|
||||
'de',
|
||||
'en-us',
|
||||
'es',
|
||||
'fr',
|
||||
'hi',
|
||||
'hi-in',
|
||||
'hc',
|
||||
'id',
|
||||
'it',
|
||||
'ja',
|
||||
'ko',
|
||||
'mr',
|
||||
'ms',
|
||||
'nl',
|
||||
'pl',
|
||||
'pt',
|
||||
'ru',
|
||||
'sv',
|
||||
'ta',
|
||||
'te',
|
||||
'tr',
|
||||
'uk',
|
||||
'ur',
|
||||
'vi',
|
||||
'zh-cn',
|
||||
'zh-tw',
|
||||
];
|
||||
|
||||
function openContactUs() {
|
||||
const userLanguage = app.getLocale();
|
||||
const language = SUPPORT_LANGUAGES.includes(userLanguage)
|
||||
? userLanguage
|
||||
: 'en-us';
|
||||
|
||||
// This URL needs a hardcoded language because the '?desktop' is dropped if the page
|
||||
// auto-redirects to the proper URL
|
||||
shell.openExternal(
|
||||
`https://support.signal.org/hc/${language}/requests/new?desktop`
|
||||
);
|
||||
shell.openExternal(createSupportUrl({ locale: app.getLocale() }));
|
||||
}
|
||||
|
||||
function openJoinTheBeta() {
|
||||
|
||||
Reference in New Issue
Block a user