Skip to content

Commit

Permalink
Open inbox when linking and suddenly offline
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Aug 11, 2022
1 parent 12b1f31 commit ac23c90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ts/background.ts
Expand Up @@ -2056,6 +2056,16 @@ export async function startApp(): Promise<void> {
);
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;
}

Expand Down

0 comments on commit ac23c90

Please sign in to comment.