Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][NOWEB] - sendSeen doesn't work correctly #635

Open
gamoridev opened this issue Nov 11, 2024 · 6 comments
Open

[BUG][NOWEB] - sendSeen doesn't work correctly #635

gamoridev opened this issue Nov 11, 2024 · 6 comments
Labels
bug Something isn't working patron:PLUS

Comments

@gamoridev
Copy link

gamoridev commented Nov 11, 2024

Send seen and Message Ack Properties

  • The properties ack and ackName does not change after sending sendSeen to the message.

Even sending the /sendSeen to this message, the properties ack remains null and ackName "UNKNOWN".
This seems strange because reading from WhatsApp App, the property changes correctly.
Also, on the WhatsApp app, the message is checked with blue checkmark after sending the POST.
image

  {
    "id": "[REDACTED]",
    "timestamp": 1731347646,
    "from": "[REDACTED]",
    "fromMe": false,
    "body": "teste",
    "hasMedia": false,
    "ack": null,
    "ackName": "UNKNOWN",
    "replyTo": {
      "body": null
    },
  }

patron:PLUS

@gamoridev gamoridev added the bug Something isn't working label Nov 11, 2024
@gamoridev gamoridev changed the title [BUG][NOWEB] - [BUG][NOWEB] - sendSeen doesn't work correctly Nov 11, 2024
@devlikepro
Copy link
Contributor

devlikepro commented Nov 12, 2024

Hi!
I've tested it with the latest 2024.11.4 version, NOWEB engine

  1. Connected Account1 to WAHA
  2. Send a message from Acccount2 to Account1
  3. Receive it via webhook
  4. Send POST api/sendSeen with data (below) from Account1
  5. See double green ticks on Account2 on the phone

There's no "double green ticks" on recipient side as I can see - this is why "fromMe": false," messages have "UNKNOWN" ack.
Only fromMe: True has it

let me know if there's some additional steps or conditions you're referening too!

patron:PRO

@devlikepro
Copy link
Contributor

devlikepro commented Nov 12, 2024

the message is checked with blue checkmark after sending the POST.

Oh, I see, so the only issue in ack flag?
yeah, that's how whatsapp apps work - it doesn't track "incoming" ack, so we do not either (we could track, but it won't work for history you get from phone)

patron:PRO

@gamoridev
Copy link
Author

gamoridev commented Nov 12, 2024

I didn't understand 🤔

Whats the difference of "acking" from Waha and reading the message from WhatsApp?
Why does only reading from WhatsApp change the "ackName" to "READ"?

@devlikepro

patron:PLUS

@gamoridev
Copy link
Author

gamoridev commented Nov 12, 2024

I just want something to differ the "acked" message when I fetch messages again.
Looks like there's nothing on the message object that changes when I send the ack POST, however it changes the blue check marks on WhatsApp App, that sounds strange.

patron:PLUS

@devlikepro
Copy link
Contributor

devlikepro commented Nov 13, 2024

Oh, you're right it DOES change the status when you do read it for a incoming message in the app 🤔
Will check that, thank you for the details!

patron:PRO

@devlikepro devlikepro reopened this Nov 13, 2024
@devlikepro
Copy link
Contributor

devlikepro commented Nov 13, 2024

The main problem I see - when you'll "repair" (scan qr) the account - it doesn't have ack for messages :( We'll check what we can do here so when you logout and login again you can start processing only missed messages (if it's possible)

patron:PRO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patron:PLUS
Projects
None yet
Development

No branches or pull requests

2 participants