mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[bug] Clean state service on logout
This commit is contained in:
@@ -571,6 +571,8 @@ export default class MainBackground {
|
|||||||
this.keyConnectorService.clear(),
|
this.keyConnectorService.clear(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
await this.stateService.clean();
|
||||||
|
|
||||||
if (userId == null || userId === (await this.stateService.getUserId())) {
|
if (userId == null || userId === (await this.stateService.getUserId())) {
|
||||||
this.searchService.clearIndex();
|
this.searchService.clearIndex();
|
||||||
this.messagingService.send("doneLoggingOut", { expired: expired, userId: userId });
|
this.messagingService.send("doneLoggingOut", { expired: expired, userId: userId });
|
||||||
|
|||||||
Reference in New Issue
Block a user