-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vCard FN property not updated when modifying contact details #1761
Comments
Correct. Currently the code to update FN is disabled. snappymail/dev/Model/Contact.js Line 248 in 16cc17a
This is because N consists of 5 fields, and below i show which SnappyMail currently can edit:
So when all 5 can be edited the FN can be activated. |
OK, I'm interested in developing this fix So to update the FN property we will need to:
Should I create a record for each of these properties? If yes, which one to use for each of them? |
There's no need to modify the database. Maybe just enable the following to get it working snappymail/snappymail/v/0.0.0/app/templates/Views/User/PopupsContacts.html Lines 106 to 125 in 56db749
|
Could you please reopen this issue? I am submitting a pull request to fix the translations of the fields added for the pt-BR language. |
Describe the bug
When updating a contact's information (name and surname), the changes are reflected correctly in the database fields first_name and last_name, but the vCard property associated with the contact is not updated accordingly. This leads to inconsistencies between the database and the vCard data.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When updating contact details (e.g., name or surname), the vCard property should be updated to reflect the changes.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
Debug/logging information
Read here how to log
Here is the payload sent when updating the contact. In this case, I updated the contact from "Nome" to "Nome 2". It can be seen that the N property was updated, but the FN property was not:
{"uid":"11","jCard":"[\"vcard\",[[\"version\",{},\"text\",\"4.0\"],[\"n\",{},\"text\",[\"\",\"Nome 2\",\"\",\"\",\"\"]],[\"org\",[],\"text\",[\"\",\"\"]],[\"x-crypto\",{\"allowed\":\"PGP/INLINE,PGP/MIME,S/MIME,S/MIMEOpaque\",\"signpref\":\"Ask\",\"encryptpref\":\"Ask\"},\"x-crypto\",\"\"],[\"rev\",[],\"timestamp\",\"2024-09-18T13:59:44Z\"],[\"uid\",[],\"text\",\"0b99ea2e-9e37-4619-b41d-21dd1770746e\"],[\"fn\",[],\"text\",\"Nome\"],[\"prodid\",[],\"text\",\"SnappyMail-2.36.1\"]]]","showToast":true,"Action":"ContactSave"}
The text was updated successfully, but these errors were encountered: