Contact struct and local CRUD operations.
Contact data is populated from:
- App state sync patches (field "contact" in critical_unblock_low)
- Incoming message notify attribute (push name)
- History sync data
Summary
Functions
Delete a contact by JID.
Get a contact by JID.
List all contacts from the store.
Merge contact data from an app state sync ContactAction.
Put (create or update) a contact.
Update push name for a contact (from incoming message notify attr).
Builds a WhatsApp-compatible vCard 3.0 payload for send_contact/5.
Types
Functions
Delete a contact by JID.
Get a contact by JID.
List all contacts from the store.
Merge contact data from an app state sync ContactAction.
Put (create or update) a contact.
Update push name for a contact (from incoming message notify attr).
Builds a WhatsApp-compatible vCard 3.0 payload for send_contact/5.
The waid parameter is normalized to digits while the displayed telephone
number keeps its leading + when one was supplied.