From ff6e86e84df7ec77bbef7dee343209325ff15f9c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 13 Aug 2018 14:09:26 -0400 Subject: [PATCH] clear search index --- jslib | 2 +- src/background/main.background.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index d917651d9f8..364192b27a5 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit d917651d9f844dc07abf3e817073aa1e10213b9a +Subproject commit 364192b27a54d76bd95929ee88a954548c0229c9 diff --git a/src/background/main.background.ts b/src/background/main.background.ts index 67d83803f44..e79d6f9f6b6 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -138,12 +138,13 @@ export default class MainBackground { this.storageService, this.i18nService, this.cipherService); this.collectionService = new CollectionService(this.cryptoService, this.userService, this.storageService, this.i18nService); + this.searchService = new SearchService(this.cipherService, this.platformUtilsService); this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService, - this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService, async () => { + this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService, + this.searchService, async () => { await this.setIcon(); await this.refreshBadgeAndMenu(true); }); - this.searchService = new SearchService(this.cipherService, this.platformUtilsService); this.syncService = new SyncService(this.userService, this.apiService, this.settingsService, this.folderService, this.cipherService, this.cryptoService, this.collectionService, this.storageService, this.messagingService, async (expired: boolean) => await this.logout(expired)); @@ -265,6 +266,7 @@ export default class MainBackground { this.passwordGenerationService.clear(), ]); + this.searchService.clearIndex(); this.messagingService.send('doneLoggingOut', { expired: expired }); await this.setIcon();