mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-07 21:10:55 +08:00
pass null in cipher service (#19538)
This commit is contained in:
parent
c51e95fddd
commit
adfee0dc0e
@ -2343,7 +2343,9 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
}
|
||||
|
||||
private async clearEncryptedCiphersState(userId: UserId) {
|
||||
await this.stateProvider.setUserState(ENCRYPTED_CIPHERS, {}, userId);
|
||||
// Use null (not {}) so that cipherListViews$/cipherViews$ filter it out
|
||||
// and don't emit an empty array during sync.
|
||||
await this.stateProvider.setUserState(ENCRYPTED_CIPHERS, null, userId);
|
||||
}
|
||||
|
||||
private async clearDecryptedCiphersState(userId: UserId) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user