Button in vcard message does nothing if import fails [Unhandled Rejection: either contactId or email needs to be set]

v2.49.1. I attach a vcard that has specific errors described in a separate issue:

I click on the button in the message. Nothing happens. I expected it to either work (open a chat) or to open a window telling me about any possible errors in the file. If the file format is unsupported in some way, we may even want to hide this button and show it as a raw file attachment.

core/event WARNING "" 1 "/build/source/src/contact.rs:390: import_vcard_contact() failed for XXXXXX@XXXXXX.XXXXXX: Failed to import public key from vCard: Attempt to import broken public key: verify_certification: No matching issuer_key_id or issuer_fingerprint for Key ID: KeyId(XXXXXXXXXXXXXXXX)"

renderer ERROR ".../resources/app/src/App.tsx:125:10" "Unhandled Rejection: either contactId or email needs to be set" {"isTrusted":true} {"stack":"Error: either contactId or email needs to be set\n at createChatByContactId (.../resources/app/src/backend/chat.ts:84:13)\n at l (.../resources/app/src/components/message/VCard.tsx:46:26)","message":"either contactId or email needs to be set"}

1 Like

This is the relevant code

Maybe helper function for user visible errors on exception in async action · Issue #3883 · deltachat/deltachat-desktop · GitHub would be a good enough solution here.

1 Like