1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[PM-23197] update cipherService to return decCiphers (#15433)

* update cipherService to return decCiphers, update input to use signal, refactor observable, update spec
This commit is contained in:
Jason Ng
2025-07-03 17:35:50 -04:00
committed by GitHub
parent b4d87007ba
commit c7fc9b88fc
4 changed files with 57 additions and 59 deletions

View File

@@ -383,7 +383,7 @@ export class CipherService implements CipherServiceAbstraction {
const decCiphers = await this.getDecryptedCiphers(userId);
if (decCiphers != null && decCiphers.length !== 0) {
await this.reindexCiphers(userId);
return await this.getDecryptedCiphers(userId);
return decCiphers;
}
const decrypted = await this.decryptCiphers(await this.getAll(userId), userId);