1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 00:53:22 +00:00

[PM-31668] Race condition in cipher cache clearing causes stale failed decryption state after leaving organization (#18751)

* Refactored the search index to index with the cipherlistview

* Fixed comment

* clear encrypted cipher state to prevent stale emissions during sync
This commit is contained in:
SmithThe4th
2026-02-06 12:10:16 -05:00
committed by GitHub
parent 256fe6305f
commit bf13194b9c
6 changed files with 340 additions and 61 deletions

View File

@@ -182,6 +182,8 @@ export class DefaultSyncService extends CoreSyncService {
const response = await this.inFlightApiCalls.sync;
await this.cipherService.clear(response.profile.id);
await this.syncUserDecryption(response.profile.id, response.userDecryption);
await this.syncProfile(response.profile);
await this.syncFolders(response.folders, response.profile.id);