Skip to content

fix(whatsapp): save files uploaded in flows when the media id is a number - #1688

Merged
viethung0o0 merged 1 commit into
mainfrom
fix/whatsapp-flow-numeric-media-id
Nov 10, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
fix/whatsapp-flow-numeric-media-id

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Files customers upload in a WhatsApp Flow were not downloaded when Meta sent the media id as a number, so the raw JSON was saved to custom fields instead of file links.
  • The media id is now read as a string whether Meta sends a number or a string. Unsafe or non-integer numbers are still ignored.
  • The variable suggestion popup no longer opens for an editor that was destroyed while its items were loading. This fixes an intermittent unhandled error in the builder tests.

Test plan

  • Added tests for numeric ids, invalid ids, and the full download path
  • Added a test for the destroyed-editor case
  • WhatsApp integration and builder tests, type check and lint pass

@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 10, 2026
@viethung0o0
viethung0o0 force-pushed the fix/whatsapp-flow-numeric-media-id branch from ef8541d to 28a7ab5 Compare November 10, 2026 12:30
@viethung0o0
viethung0o0 marked this pull request as ready for review November 10, 2026 12:37
@viethung0o0
viethung0o0 merged commit 61e0a23 into main Nov 10, 2026
15 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants