From 293f2d613171ce9f9d52db11d18e511a16dd54e0 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Tue, 25 Jun 2024 10:21:32 +0200 Subject: [PATCH] Send loggedOut/locked events on logout/lock event --- apps/desktop/src/app/app.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/desktop/src/app/app.component.ts b/apps/desktop/src/app/app.component.ts index e4fdd17dc1..9c02415eb4 100644 --- a/apps/desktop/src/app/app.component.ts +++ b/apps/desktop/src/app/app.component.ts @@ -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":