Incoming text replies lose contextInfo (stanzaId / quotedMessage) — arrive as plain conversation

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

維護者通常 4 天內回覆

還沒有人認領這個 Issue。

評估

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

研究方向

Start by tracing the Baileys messages.upsert handling and the findMessages storage path; the issue does not name specific files or tests. Compare incoming text replies addressed by LID with the working audio/image and outgoing reply cases, then check how the quoted message context is preserved. Done means both the webhook payload and stored record retain contextInfo.stanzaId and contextInfo.quotedMessage for incoming quoted text replies.

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

描述

Version: Evolution API v2.4.0 (Baileys), self-hosted

What happens
When a contact replies (quotes) one of our messages using a text message, the messages.upsert webhook delivers:

"message": { "conversation": "reply text here" }

No extendedTextMessage, no contextInfo, so stanzaId and quotedMessage are lost. The same happens in the record stored by findMessages.

What works

  • Replies sent as audio or image keep contextInfo.stanzaId / quotedMessage correctly.
  • Replies sent by us (fromMe: true) keep contextInfo correctly.

Observed with

  • Chats addressed by LID (remoteJid ending in @lid, real number in remoteJidAlt). We sampled ~800 stored records: no incoming text message from a contact had contextInfo, while audio/image replies did.

Expected
Incoming quoted text replies should arrive as extendedTextMessage with contextInfo.stanzaId and contextInfo.quotedMessage, as on the WhatsApp app.

Possibly related: #2065, #2645, #1872, PR #1818 (none describes exactly this case).

主要語言
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 摘要。