1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

feat: add folder.clear warning (#16376)

This commit is contained in:
Andreas Coroiu
2025-09-11 16:05:32 +02:00
committed by GitHub
parent 840e6a9ae2
commit a2e36c4489
5 changed files with 5 additions and 0 deletions

View File

@@ -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),

View File

@@ -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),
]);

View File

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

View File

@@ -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),
]);

View File

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