1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

[PM-6797] Prevent account switching race condition on desktop & enable worker decryption (#9312)

* Prevent account switching race condition on desktop

This enables us to allow background thread / multithread bulk decryption on desktop.

* Disable account switcher component during switching
This commit is contained in:
Bernd Schoolmann
2024-07-11 14:11:51 +02:00
committed by GitHub
parent f03dabb6d6
commit e977dacdcf
7 changed files with 22 additions and 26 deletions

View File

@@ -422,12 +422,13 @@ export class AppComponent implements OnInit, OnDestroy {
} else {
this.messagingService.send("unlocked");
this.loading = true;
await this.syncService.fullSync(true);
await this.syncService.fullSync(false);
this.loading = false;
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
this.router.navigate(["vault"]);
}
this.messagingService.send("finishSwitchAccount");
break;
}
case "systemSuspended":