Incoming messages are dropped when the contact has disappearing messages enabled (v2.3.7, Baileys) — no messages.upsert, not stored

Open
#2,773 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, postgresql, redis, typescript
Domain
api, backend

Research direction

Start by tracing the Baileys incoming message handling and the messages.upsert webhook path; the payload does not name specific files or tests. Reproduce with a contact that has disappearing messages enabled and compare it with a chat where they are disabled. Done means the incoming message is stored and emitted through messages.upsert in both cases.

Written by the indexing model from the issue text.

Description

bug
Welcome!
  • Yes, I have searched for similar issues on GitHub and found none.
What did you do?

Evolution API 2.3.7 (Docker), WHATSAPP-BAILEYS integration, webhook with MESSAGES_UPSERT enabled (working normally for all other chats).

  1. From another phone, open the chat with the instance number and enable WhatsApp "Disappearing messages" (24 hours).
  2. Send a text message (e.g. "hi, how much is it?").
  3. Disable disappearing messages in the same chat and send another text message.

Reproduced on more than one instance on the same server, 100% of the time.

What did you expect?

Incoming messages in chats with disappearing messages enabled should be received like any other message (e.g. as ephemeralMessage wrapping the content, or unwrapped), stored, and emitted via messages.upsert to the webhook.

What did you observe instead of what you expected?

With disappearing messages ON: the message is visible on the phone linked to the instance, but Evolution API never receives it — no messages.upsert webhook call, and the message is not stored (it does not appear in the instance chat in the Manager, only the messages sent by the instance appear).

With disappearing messages OFF: new messages are received, stored and sent to the webhook normally.

Impact: for customer service integrations, any customer with disappearing messages enabled is silently ignored (no event, no error), so they never get a reply.

Screenshots/Videos

No response

Which version of the API are you using?

Versão / Version: 2.3.7

What is your environment?

Docker

Other environment specifications

Docker (Portainer), WHATSAPP-BAILEYS, PostgreSQL + Redis

If applicable, paste the log output

Can provide container logs captured at the moment of the test if needed.

Additional Notes

No response

Dominant language
TypeScript
Stars
10.2k
Forks
7.5k
Avg merge
6d 19h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from evolution-foundation/evolution-api

All issues in evolution-foundation/evolution-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.