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

Đang mở
#2,794 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
10.2k
Fork
7.5k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của evolution-foundation/evolution-api

Tất cả issue của evolution-foundation/evolution-api

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.