Skip to content

[NOWEB] - Getting Different messages array for same person #1444

@mkamra2000

Description

@mkamra2000

Describe the bug

When I'm hitting /api/<session>/chats/<number>@c.us/messages, then I'm getting this result

{
        "id": "false_<number>@c.us_3EB0CF49B41D79AE06F587",
        "timestamp": 1759575460,
        "from": "<number>@c.us",
        "fromMe": false,
        "source": "app",
        "body": "a",
        "hasMedia": false,
        "media": null,
        "ack": 2,
        "ackName": "DEVICE",
        "replyTo": null,
        "_data": {
            "key": {
                "remoteJid": "<number>@s.whatsapp.net",
                "remoteJidAlt": "<number_lid>@lid",
                "fromMe": false,
                "id": "3EB0CF49B41D79AE06F587"
            },
            "messageTimestamp": 1759575460,
            "pushName": "Mayank Kamra",
            "broadcast": false,
            "message": {

and when I'm hitting for that same person lid /api/<session>/chats/<number_lid>@lid/messages

{
        "id": "true_<number_lid>@lid_3EB04F6E38F70E080EF6FF",
        "timestamp": 1759574847,
        "from": "<number_lid>@lid",
        "fromMe": true,
        "source": "app",
        "body": "Hi, I'm Mayank",
        "hasMedia": false,
        "media": null,
        "ack": 2,
        "ackName": "DEVICE",
        "replyTo": null,
        "_data": {
            "key": {
                "remoteJid": "<number_lid>@lid",
                "fromMe": true,
                "id": "3EB04F6E38F70E080EF6FF"
            },

Version

{
    "version": "2025.9.7",
    "engine": "NOWEB",
    "tier": "PLUS",
    "browser": null
}

Expected behavior

When I use either the @c.us ID or the person’s @lid ID, I should get the same message array in both cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions