diff --git a/apps/browser/src/background/main.background.ts b/apps/browser/src/background/main.background.ts index 3ccd78db18..7181287aaa 100644 --- a/apps/browser/src/background/main.background.ts +++ b/apps/browser/src/background/main.background.ts @@ -1674,7 +1674,6 @@ export default class MainBackground { await Promise.all([ this.keyService.clearKeys(userBeingLoggedOut), this.cipherService.clear(userBeingLoggedOut), - // ! DO NOT REMOVE folderService.clear ! For more information see PM-25660 this.folderService.clear(userBeingLoggedOut), this.vaultTimeoutSettingsService.clear(userBeingLoggedOut), this.biometricStateService.logout(userBeingLoggedOut), diff --git a/apps/cli/src/service-container/service-container.ts b/apps/cli/src/service-container/service-container.ts index ccce00fabd..5e4de8d856 100644 --- a/apps/cli/src/service-container/service-container.ts +++ b/apps/cli/src/service-container/service-container.ts @@ -949,7 +949,6 @@ export class ServiceContainer { this.eventUploadService.uploadEvents(userId as UserId), this.keyService.clearKeys(userId), this.cipherService.clear(userId), - // ! DO NOT REMOVE folderService.clear ! For more information see PM-25660 this.folderService.clear(userId), ]); diff --git a/apps/desktop/src/app/app.component.ts b/apps/desktop/src/app/app.component.ts index 1c2d3aa464..683dcdd48c 100644 --- a/apps/desktop/src/app/app.component.ts +++ b/apps/desktop/src/app/app.component.ts @@ -691,7 +691,6 @@ export class AppComponent implements OnInit, OnDestroy { await this.eventUploadService.uploadEvents(userBeingLoggedOut); await this.keyService.clearKeys(userBeingLoggedOut); await this.cipherService.clear(userBeingLoggedOut); - // ! DO NOT REMOVE folderService.clear ! For more information see PM-25660 await this.folderService.clear(userBeingLoggedOut); await this.vaultTimeoutSettingsService.clear(userBeingLoggedOut); await this.biometricStateService.logout(userBeingLoggedOut); diff --git a/apps/web/src/app/app.component.ts b/apps/web/src/app/app.component.ts index 2fc81fe211..6091117330 100644 --- a/apps/web/src/app/app.component.ts +++ b/apps/web/src/app/app.component.ts @@ -258,7 +258,6 @@ export class AppComponent implements OnDestroy, OnInit { await Promise.all([ this.keyService.clearKeys(userId), this.cipherService.clear(userId), - // ! DO NOT REMOVE folderService.clear ! For more information see PM-25660 this.folderService.clear(userId), this.biometricStateService.logout(userId), ]); diff --git a/libs/common/src/key-management/vault-timeout/services/vault-timeout.service.ts b/libs/common/src/key-management/vault-timeout/services/vault-timeout.service.ts index 9b1350fc3a..8b523498c3 100644 --- a/libs/common/src/key-management/vault-timeout/services/vault-timeout.service.ts +++ b/libs/common/src/key-management/vault-timeout/services/vault-timeout.service.ts @@ -144,7 +144,6 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction { await this.searchService.clearIndex(lockingUserId); - // ! DO NOT REMOVE folderService.clearDecryptedFolderState ! For more information see PM-25660 await this.folderService.clearDecryptedFolderState(lockingUserId); await this.masterPasswordService.clearMasterKey(lockingUserId); diff --git a/libs/state-internal/src/default-single-user-state.ts b/libs/state-internal/src/default-single-user-state.ts index 1496a71053..9155a221d5 100644 --- a/libs/state-internal/src/default-single-user-state.ts +++ b/libs/state-internal/src/default-single-user-state.ts @@ -31,8 +31,6 @@ export class DefaultSingleUserState protected override async doStorageSave(newState: T, oldState: T): Promise { await super.doStorageSave(newState, oldState); - if (newState != null && oldState == null) { - await this.stateEventRegistrarService.registerEvents(this.keyDefinition); - } + await this.stateEventRegistrarService.registerEvents(this.keyDefinition); } }