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

Abierto
#2,773 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
node.js, postgresql, redis, typescript
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
10.2k
Forks
7.5k
Merge medio
6 d 19 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de evolution-foundation/evolution-api

Todos los issues de evolution-foundation/evolution-api

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.