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

Prefer Passed In UserId (#8602)

This commit is contained in:
Justin Baur 2024-04-10 17:55:20 -05:00 committed by GitHub
parent e4720de62a
commit 16c289d680
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1188,7 +1188,7 @@ export default class MainBackground {
await this.searchService.clearIndex();
}
await this.stateEventRunnerService.handleEvent("logout", currentUserId as UserId);
await this.stateEventRunnerService.handleEvent("logout", userId);
if (newActiveUser != null) {
// we have a new active user, do not continue tearing down application