Hello, is it possible to get the PushName of the contact?
This function is not yet implemented into the api. Whatsapp sends a contacts message immediatly after the connection was established. We would need to store all contacts and then provide a function to search them.
EDIT: WhatsApp provides a function to update the contacts, but it only returns changes and not all contacts.
You can now get the contact from wac.Store.Contacts[jid]. The function, that retrieve the updated contacts from the server is already implemented, but it does not update the contacts in the store yet.
Ola, perfect worked perfectly.
Most helpful comment
You can now get the contact from
wac.Store.Contacts[jid]. The function, that retrieve the updated contacts from the server is already implemented, but it does not update the contacts in the store yet.