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

Aperta
#2,794 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, backend

Direzione di ricerca

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.

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

Descrizione

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).

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.