From ac23c905b3c9653c5099ebb844941f5d5e974944 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Thu, 11 Aug 2022 14:04:27 -0700 Subject: [PATCH] Open inbox when linking and suddenly offline Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- ts/background.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts/background.ts b/ts/background.ts index 204d975672d..25e7ca6a253 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -2056,6 +2056,16 @@ export async function startApp(): Promise { ); window.addEventListener('online', onOnline); onEmpty(); // this ensures that the loading screen is dismissed + + // Switch to inbox view even if contact sync is still running + if ( + window.reduxStore.getState().app.appView === AppViewType.Installer + ) { + log.info('firstRun: offline, opening inbox'); + window.reduxActions.app.openInbox(); + } else { + log.info('firstRun: offline, not opening inbox'); + } return; }