Skip to content

Commit 1051e6d

Browse files
remove dependency on cipher decryption keys (#14408)
- It was not being used in the observable pipeline and causing multiple decryptions
1 parent 7fdc16d commit 1051e6d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

libs/common/src/vault/services/cipher.service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,8 @@ export class CipherService implements CipherServiceAbstraction {
124124
* decryption is in progress. The latest decrypted ciphers will be emitted once decryption is complete.
125125
*/
126126
cipherViews$ = perUserCache$((userId: UserId): Observable<CipherView[] | null> => {
127-
return combineLatest([
128-
this.encryptedCiphersState(userId).state$,
129-
this.localData$(userId),
130-
this.keyService.cipherDecryptionKeys$(userId, true),
131-
]).pipe(
132-
filter(([ciphers, keys]) => ciphers != null && keys != null), // Skip if ciphers haven't been loaded yor synced yet
127+
return combineLatest([this.encryptedCiphersState(userId).state$, this.localData$(userId)]).pipe(
128+
filter(([ciphers]) => ciphers != null), // Skip if ciphers haven't been loaded yor synced yet
133129
switchMap(() => this.getAllDecrypted(userId)),
134130
);
135131
}, this.clearCipherViewsForUser$);

0 commit comments

Comments
 (0)