Browse Source

feat: add folder.clear warning (#16376)

pull/16378/head
Andreas Coroiu 3 months ago committed by GitHub
parent
commit
a2e36c4489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      apps/browser/src/background/main.background.ts
  2. 1
      apps/cli/src/service-container/service-container.ts
  3. 1
      apps/desktop/src/app/app.component.ts
  4. 1
      apps/web/src/app/app.component.ts
  5. 1
      libs/common/src/key-management/vault-timeout/services/vault-timeout.service.ts

1
apps/browser/src/background/main.background.ts

@ -1640,6 +1640,7 @@ export default class MainBackground { @@ -1640,6 +1640,7 @@ 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),

1
apps/cli/src/service-container/service-container.ts

@ -907,6 +907,7 @@ export class ServiceContainer { @@ -907,6 +907,7 @@ 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),
]);

1
apps/desktop/src/app/app.component.ts

@ -689,6 +689,7 @@ export class AppComponent implements OnInit, OnDestroy { @@ -689,6 +689,7 @@ 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);

1
apps/web/src/app/app.component.ts

@ -258,6 +258,7 @@ export class AppComponent implements OnDestroy, OnInit { @@ -258,6 +258,7 @@ 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),
]);

1
libs/common/src/key-management/vault-timeout/services/vault-timeout.service.ts

@ -144,6 +144,7 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction { @@ -144,6 +144,7 @@ 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);

Loading…
Cancel
Save