1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

[bug] Index search service when setting decrypted ciphers (#620)

With the move to a central StateService we erroniously cut out search indexing from the process of setting decrypted ciphers to memory.
This commit calls the method responsible for setting decrypted ciphers and indexing when decrypting, instead of setting decrypted ciphers directly.
This commit is contained in:
Addison Beck 2022-01-20 16:25:04 -05:00 committed by GitHub
parent 19bf7c75a3
commit 025a4a5e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,7 +355,7 @@ export class CipherService implements CipherServiceAbstraction {
await Promise.all(promises);
decCiphers.sort(this.getLocaleSortingFunction());
await this.stateService.setDecryptedCiphers(decCiphers);
await this.setDecryptedCipherCache(decCiphers);
return decCiphers;
}