Skip to content

Fix GOWS chats/overview: resolve LID to phone number (@c.us)#1941

Open
niels-przybilla wants to merge 2 commits intodevlikeapro:corefrom
niels-przybilla:fix/chats-overview-lid-to-phone
Open

Fix GOWS chats/overview: resolve LID to phone number (@c.us)#1941
niels-przybilla wants to merge 2 commits intodevlikeapro:corefrom
niels-przybilla:fix/chats-overview-lid-to-phone

Conversation

@niels-przybilla
Copy link

@niels-przybilla niels-przybilla commented Feb 28, 2026

Summary

  • When WhatsApp uses LID (Linked ID) format internally, chats/overview returned IDs as @lid instead of @c.us
  • This fix calls findPNByLid() in fetchChatSummary to resolve LIDs to actual phone numbers
  • Falls back to LID format gracefully if resolution fails

Before

{"id": "89464252674282@lid", "name": "Niels Przybilla"}

After

{"id": "491632587799@c.us", "name": "Niels Przybilla"}

Changes

  • src/core/engines/gows/session.gows.core.ts: Added isLidUser import and LID-to-phone resolution in fetchChatSummary

🤖 Generated with Claude Code

patron:PRO

niels-przybilla and others added 2 commits February 28, 2026 16:38
…e with @lid

GOWS: Add contact name fallback in fetchChatSummary() - when chat.name
is null, look up contact via GetContactById to resolve Name/PushName.
Fixes devlikeapro#1910.

WEBJS: Convert @lid to @c.us in getPresence() and subscribePresence()
using findPNByLid() before passing to underlying client, since
getCurrentPresence() only handles @c.us format correctly. Fixes devlikeapro#1845.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…rmat)

When WhatsApp uses LID (Linked ID) format internally, the chats/overview
endpoint now resolves LIDs to actual phone numbers using findPNByLid(),
returning IDs in the expected @c.us format instead of @lid format.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant