1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-30 16:23:53 +00:00

consume decryption failure from the sdk for attachments

This commit is contained in:
Nick Krantz
2026-01-02 15:41:54 -06:00
parent 17e8e48181
commit 4b4d6bd7c8

View File

@@ -99,6 +99,7 @@ export class AttachmentView implements View {
// TODO: PM-23005 - Temporary field, should be removed when encrypted migration is complete
view.key = obj.decryptedKey ? SymmetricCryptoKey.fromString(obj.decryptedKey) : undefined;
view.encryptedKey = obj.key ? new EncString(obj.key) : undefined;
view._hasDecryptionError = obj.decryptionFailure;
return view;
}