-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Description
Summary
Proactively harden LID (Linked ID) handling before WhatsApp's June 2026 Business API deadline when LID becomes mandatory.
Context
While investigating #2408, we confirmed that current LID handling works but has fragile assumptions:
What Works Today
- Real-time LID → phone resolution via
remoteJidAlt(baileys:1589-1591) createConversationusesremoteJidAltfor LID contacts (chatwoot:635)- Contact self-healing/merge when identifiers change (chatwoot:644-666)
- IsOnWhatsapp cache for historical sync (baileys:1623-1632)
Remaining Risks
- No fallback if
remoteJidAltis missing — ifremoteJidAltis absent for a LID message, contact lookup fails or creates broken contact - Group participant LID — if
participantAltis missing for group messages, LID string is shown instead of phone number - Silent failures — LID resolution errors are not surfaced clearly in logs
Recommendations
- Add defensive guards for missing
remoteJidAlt - Improve logging for LID resolution (success/failure metrics)
- Add fallback strategies (e.g., query IsOnWhatsapp table if remoteJidAlt missing)
- Consider alerting when LID messages fail to resolve
WhatsApp LID Timeline
| Milestone | Date | Impact |
|---|---|---|
| LID beta testing | Ongoing since Nov 2025 | Increasing LID traffic |
| Username rollout | Early 2026 | LID becomes default |
| Business API deadline | June 2026 | All integrations must support LID |
Priority
Medium — current implementation works, but LID volume will increase significantly through 2026.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels