From 34fbfaf2eef1105efacf470f0d5a7d2dc5e47147 Mon Sep 17 00:00:00 2001 From: Jason Ng Date: Thu, 14 Mar 2024 13:13:27 -0400 Subject: [PATCH] [PM-6558] onboarding ext check on log in (#8249) * updated browser runtime background to send hasBWInstalled message on login/unlocked --- apps/browser/src/background/runtime.background.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/browser/src/background/runtime.background.ts b/apps/browser/src/background/runtime.background.ts index 55be9ba64d..f422fc8550 100644 --- a/apps/browser/src/background/runtime.background.ts +++ b/apps/browser/src/background/runtime.background.ts @@ -97,6 +97,10 @@ export default class RuntimeBackground { case "unlocked": { let item: LockedVaultPendingNotificationsData; + if (msg.command === "loggedIn") { + await this.sendBwInstalledMessageToVault(); + } + if (this.lockedVaultPendingNotifications?.length > 0) { item = this.lockedVaultPendingNotifications.pop(); await closeUnlockPopout(); @@ -351,8 +355,6 @@ export default class RuntimeBackground { if (await this.environmentService.hasManagedEnvironment()) { await this.environmentService.setUrlsToManagedEnvironment(); } - - await this.sendBwInstalledMessageToVault(); } this.onInstalledReason = null;