fix vcards from code, and remove eslint errors to allow merge #2169
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Details
Fix for vCard parsing copied from #1995
I don't know why exactly not merged but I saw it didn't pass ESLint check so I updated it with fixes for ESLint
since I need
whatsapp-web.js
up to date on my bot, while being able to send vcards, I must update the code manually each time I update it, so I think we need to merge this in case other people needs itDescription
The module vcardFromContactModel doesn't contain parseVcard and vcardGetNameFromParsed functions anymore.
They can be found in the module WA_BIZ_NAME.
Motivation and Context
The vCard was not display, the content of the vCard was sent to Whatsapp chat.
How Has This Been Tested
on my personal whatsapp account
Types of changes
Checklist