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

Aperta
#2,773 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, postgresql, redis, typescript
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
10.2k
Fork
7.5k
Merge medio
6g 19h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di evolution-foundation/evolution-api

Tutte le issue di evolution-foundation/evolution-api

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.