pass null in cipher service (#19538)

This commit is contained in:
Jordan Aasen 2026-03-16 09:37:22 -07:00 committed by GitHub
parent c51e95fddd
commit adfee0dc0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {