diff --git a/jslib b/jslib index 8cb029947bf..b7bb16c18a4 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 8cb029947bff7dda54a45483403c3f505fa3e6bc +Subproject commit b7bb16c18a4bcd47988397bcf089fe6d895256b9 diff --git a/src/background/main.background.ts b/src/background/main.background.ts index f2740359525..38c01cf5d1d 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -272,7 +272,7 @@ export default class MainBackground { ); const vaultTimeoutServiceCallbacks = { - locked: async () => { + locked: async (userId?: string) => { if (this.notificationsService != null) { this.notificationsService.updateConnection(false); } @@ -283,7 +283,7 @@ export default class MainBackground { await this.reloadProcess(); } }, - logout: async () => await this.logout(false), + logout: async (userId?: string) => await this.logout(false, userId), }; this.vaultTimeoutService = new VaultTimeoutService( @@ -561,7 +561,6 @@ export default class MainBackground { await Promise.all([ this.eventService.clearEvents(userId), this.syncService.setLastSync(new Date(0), userId), - this.tokenService.clearToken(userId), this.cryptoService.clearKeys(userId), this.settingsService.clear(userId), this.cipherService.clear(userId),