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

Offen
#2,794 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 4 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
api, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
10.2k
Forks
7.5k
Ø Merge
6 T. 19 Std.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus evolution-foundation/evolution-api

Alle Issues in evolution-foundation/evolution-api

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.