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

[bug] Clean state service on logout

This commit is contained in:
addison 2022-02-07 15:09:43 -05:00
parent f9851285d5
commit 9cea47aaf1

View File

@ -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 });