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

未關閉
#2,773 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 4 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
node.js, postgresql, redis, typescript
領域
api, backend

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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

主要語言
TypeScript
星號
10.2k
分支
7.5k
平均合併
6 天 19 小時
30 天內合併 PR
4

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

evolution-foundation/evolution-api 的其他 Issue

查看 evolution-foundation/evolution-api 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。