File tree 1 file changed +6
-2
lines changed
libs/common/src/vault/services
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,12 @@ export class CipherService implements CipherServiceAbstraction {
124
124
* decryption is in progress. The latest decrypted ciphers will be emitted once decryption is complete.
125
125
*/
126
126
cipherViews$ = perUserCache$ ( ( userId : UserId ) : Observable < CipherView [ ] | null > => {
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
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
129
133
switchMap ( ( ) => this . getAllDecrypted ( userId ) ) ,
130
134
) ;
131
135
} , this . clearCipherViewsForUser$ ) ;
You can’t perform that action at this time.
0 commit comments