Amarula.Protocol.Signal.LIDMapping (amarula v0.1.0)
View SourceLID (Local ID) mapping types and utilities.
LID mapping is used to convert between Phone Number (PN) JIDs and Local ID (LID) JIDs for WhatsApp's privacy features. This allows users to communicate without exposing their phone numbers.
Summary
Functions
Constructs a device-specific JID.
Decodes a JID into its components.
Checks if a JID is a hosted phone number user.
Checks if a JID is a LID user.
Creates a new LID mapping.
Normalizes a JID to its user part.
Checks if a JID is a phone number user.
Types
Functions
@spec construct_device_jid(String.t(), non_neg_integer(), String.t()) :: String.t()
Constructs a device-specific JID.
Decodes a JID into its components.
Checks if a JID is a hosted phone number user.
Checks if a JID is a LID user.
Creates a new LID mapping.
Normalizes a JID to its user part.
Checks if a JID is a phone number user.