[PM-38808] Support optional encrypted Cipher.name#7048
Conversation
Adapts to the SDK making encrypted Cipher.name optional (sdk-internal#1122).
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed a single-line change in Code Review DetailsNo findings. |
|
This has been addressed in this PR. |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-38808
📔 Objective
The SDK is making the encrypted
Cipher.namefield optional (String→String?) as part of the blob encryption migration (sdk-internal#1122) — blob-encrypted ciphers carry the name inside the sealeddatablob rather than as a top-level field.Cipher.toFailureCipherListView()builds aCipherListView(whosenameis non-null) directly from the encryptedCipher, so the now-nullablenameno longer compiles. This falls back to an empty string when the name is absent.The decrypted
CipherView/CipherListViewnamefields are unchanged, so all UI and sorting is unaffected.