waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - @c.us and @lid in the /api/{session}/chats/{chatId}/messages

Open sergiozaninotti opened this issue 10 months ago • 9 comments

Describe the bug

The endpoint "/api/{session}/chats/{chatId}/messages" is not returning all user messages. When messages are sent via WhatsApp Web and the mobile app, the endpoint does not return all of them.

In summary, when using /api/{session}/chats/{number@lid}/messages, it returns only the messages sent and received through the WhatsApp mobile app, and when using /api/{session}/chats/{[email protected] }/messages, it returns only the messages sent and received through WhatsApp Web. It is not returning all messages from both channels in a centralized way, creating a gap between messages.

Version

Get the WAHA version by calling GET /api/version

{
  "version": "GOWS (2026.1.3 PLUS)",
  "engine": "GOWS",
  "tier": "PLUS"
}

Steps

Steps to reproduce the issue:

Send a message from WhatsApp Web and send another message from the mobile app to the same connected number. Then perform a GET request to /api/{session}/chats/{number@lid}/messages. It will return only the message sent from the mobile app. Make a new GET request to /api/{session}/chats/{[email protected] }/messages. It will return only the message sent from WhatsApp Web.

Expected behavior:

When performing a GET request to /api/{session}/chats/{[email protected] }/messages, it should return all messages in sending order, regardless of whether they were sent via WhatsApp Web or the mobile app.

LOG FROM {[email protected]} - Only messages from web whatsapp Image

LOG FROM {number@lid} - Only messages from whatsapp app Image

patron:PLUS

sergiozaninotti avatar Jan 15 '26 22:01 sergiozaninotti

Experiencing same issue in version devlikeapro/waha-plus:gows-2025.12.2 Also problem is very visible through the chat ui in waha dashboard

These are the same user, the top one is using the web and desktop client and the one in the bottom is using mobile app client

Image

Chat endpoint

Image

Fun fact

Just checked that if I disconnect and reconnect the user, I do see all the messages under the same chat id and no messages are returned for the lid

JuanchiRios avatar Jan 21 '26 22:01 JuanchiRios

NOWEB +1

HuangDaHui avatar Jan 22 '26 07:01 HuangDaHui

Same thing happening here for GOWS, WEBJS version works fine.

yanmcs avatar Jan 22 '26 19:01 yanmcs

I’m having the same issue as @JuanchiRios on WEBJS (2026.1.3 PLUS). The contact is initially [email protected]. I send a message to this contact, but at some point when the contact replies, the sender ID changes to xxxxx@lid. This breaks the contact mapping. This issue started to appear for me only in version 2026.1.3.

truegreatvoid avatar Jan 23 '26 14:01 truegreatvoid

@devlikepro Hello team, how’s everything going over there? Do we have any estimated timeframe for fixing this issue? I have several clients complaining about it. 😕

patron:PLUS

sergiozaninotti avatar Jan 29 '26 12:01 sergiozaninotti

Same issue here with GOWS. any plan or ETA for this? 🙏

PabloAlice avatar Feb 03 '26 16:02 PabloAlice

@devlikepro We have been waiting for a resolution to this issue for over three weeks, with no response.

This endpoint is essential for building any chat service, and it is not working correctly. The message mapping is broken due to the @c.us and @lid discrepancy, and there has been no resolution for more than 20 days.

At the very least, we expected some feedback from the team, but we have not even received that. Is this the kind of service you provide?

patron:PLUS

sergiozaninotti avatar Feb 05 '26 14:02 sergiozaninotti

same issue here....

patron:PLUS

nmarquev avatar Feb 11 '26 19:02 nmarquev

  • 2026.3.1 - NOWEB - merge @lid and @c.us messages in /overview and /messages
  • 2026.3.1 - GOWS - merge @lid and @c.us in /messages, /overview, /chats
  • 2026.3.1 - NOWEB - merge flag to disable merging @lid and @c.us messages and chats
  • 2026.3.1 - GOWS - merge flag to disable merging @lid and @c.us messages and chats

patron:PRO

devlikepro avatar Mar 05 '26 06:03 devlikepro