File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
libs/common/src/vault/services Expand file tree Collapse file tree 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 {
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 ( [ 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
129133 switchMap ( ( ) => this . getAllDecrypted ( userId ) ) ,
130134 ) ;
131135 } , this . clearCipherViewsForUser$ ) ;
You can’t perform that action at this time.
0 commit comments