Merge pull request #2318 from bitwarden/Bug/AccountSwitching/LogoutAction
[bug] Clean state service on logout
This commit is contained in:
commit
1d34339d02
|
@ -571,6 +571,8 @@ export default class MainBackground {
|
|||
this.keyConnectorService.clear(),
|
||||
]);
|
||||
|
||||
await this.stateService.clean();
|
||||
|
||||
if (userId == null || userId === (await this.stateService.getUserId())) {
|
||||
this.searchService.clearIndex();
|
||||
this.messagingService.send("doneLoggingOut", { expired: expired, userId: userId });
|
||||
|
|
Loading…
Reference in New Issue