Persists normalized contacts in an ExWapp.Store.
Every lookup and write canonicalizes the JID and removes legacy aliases, so consumers see one contact record regardless of the identifier form received from the wire.
Summary
Functions
Deletes a contact and every legacy alias for the same JID.
Fetches a contact by JID, including records stored under legacy aliases.
Lists all normalized contacts currently stored.
Merges contact fields decoded from app-state synchronization.
Stores a contact under its canonical JID and removes duplicate aliases.
Updates the push name associated with a contact.
Functions
Deletes a contact and every legacy alias for the same JID.
@spec get( struct(), String.t() ) :: ExWapp.Contact.t() | nil
Fetches a contact by JID, including records stored under legacy aliases.
@spec list(struct()) :: [ExWapp.Contact.t()]
Lists all normalized contacts currently stored.
Merges contact fields decoded from app-state synchronization.
@spec put(struct(), String.t(), ExWapp.Contact.t()) :: :ok
Stores a contact under its canonical JID and removes duplicate aliases.
Updates the push name associated with a contact.