[bug] Clean state service on logout

This commit is contained in:
addison 2022-02-07 15:09:43 -05:00
parent 8658cfc5d3
commit 036bade54d
1 changed files with 2 additions and 0 deletions

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