Skip to content

Fix GOWS chats/overview missing contact name and WEBJS presence with @lid#1940

Open
niels-przybilla wants to merge 1 commit intodevlikeapro:corefrom
niels-przybilla:fix/chats-overview-name-and-lid-presence
Open

Fix GOWS chats/overview missing contact name and WEBJS presence with @lid#1940
niels-przybilla wants to merge 1 commit intodevlikeapro:corefrom
niels-przybilla:fix/chats-overview-name-and-lid-presence

Conversation

@niels-przybilla
Copy link

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

Summary

  • GOWS engine: Fix missing contact name in /api/{session}/chats/overview endpoint. When chat.name is null (common with GOWS gRPC responses), the code now falls back to looking up the contact via GetContactById and uses Name or PushName. Follows the same pattern as the NOWEB engine.
  • WEBJS engine: Fix presence API not working with @lid chat IDs. getPresence() and subscribePresence() now convert @lid to @c.us format using findPNByLid() before passing to the underlying client, since getCurrentPresence() only handles @c.us format correctly.

Fixes #1910
Fixes #1845

Test plan

  • GOWS: Call GET /api/{session}/chats/overview and verify contact names are populated (not null)
  • WEBJS: Call GET /api/{session}/presence/{lid_chat_id} with an @lid format ID and verify presence data is returned
  • WEBJS: Call GET /api/{session}/presence/{c_us_chat_id} with an @c.us format ID and verify it still works as before

🤖 Generated with Claude Code

patron:PRO

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant