From 465bdad2bfa609c6bf1a6c4abb761e6b2fa8e057 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 11 Aug 2022 13:28:31 -0700 Subject: [PATCH] Open inbox when linking and suddenly offline --- ts/background.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts/background.ts b/ts/background.ts index d4dc993cab99..799114dbf768 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -2060,6 +2060,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; }