1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-23 03:22:50 +02:00

Send loggedOut/locked events on logout/lock event

This commit is contained in:
Bernd Schoolmann 2024-06-25 10:21:32 +02:00
parent ffb99efebb
commit 293f2d6131
No known key found for this signature in database

View File

@ -212,9 +212,11 @@ export class AppComponent implements OnInit, OnDestroy {
this.loading = message.userId == null || message.userId === this.activeUserId;
await this.logOut(message.logoutReason, message.userId);
this.loading = false;
this.messagingService.send("loggedOut");
break;
case "lockVault":
await this.vaultTimeoutService.lock(message.userId);
this.messagingService.send("locked", { userId: message.userId });
break;
case "lockAllVaults": {
const currentUser = await firstValueFrom(
@ -229,6 +231,7 @@ export class AppComponent implements OnInit, OnDestroy {
await this.vaultTimeoutService.lock(account);
}
this.messagingService.send("locked");
break;
}
case "locked":