iachat/spec/models/channel
Muhsin Keloth 7e4d93f649
fix: Setup webhooks for manual WhatsApp Cloud channel creation (#13278)
Fixes https://github.com/chatwoot/chatwoot/issues/13097

### Problem
The PR #12176 removed the `before_save :setup_webhooks` callback to fix
a race condition where Meta's webhook verification request arrived
before the channel was saved to the database. This change broke manual
WhatsApp Cloud channel setup. While embedded signup explicitly calls
`channel.setup_webhooks` in `EmbeddedSignupService`, manual setup had no
equivalent call - meaning the `subscribed_apps` endpoint was never
invoked and Meta never sent webhook events to Chatwoot.


### Solution
Added an `after_commit` callback that triggers webhook setup for manual
WhatsApp Cloud channels
2026-01-19 14:12:36 +04:00
..
api_spec.rb chore: Increase character limit for external url fields (#7230) 2023-05-31 19:17:24 +05:30
email_spec.rb feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
facebook_page_spec.rb chore: Remove delete Instagram story implementation (#11097) 2025-03-25 09:44:26 +05:30
instagram_spec.rb feat: Instagram reauthorization (#11221) 2025-04-03 14:30:48 +05:30
telegram_spec.rb feat(channel): add support for Telegram Business bots (#10181) (#11663) 2025-06-16 20:35:23 -07:00
twilio_sms_spec.rb chore: Centralize outgoing message reply restrictions for all the channels (#11279) 2025-04-12 08:52:12 +05:30
web_widget_spec.rb feat: Custom fields in pre-chat form (#4189) 2022-04-19 12:47:29 +05:30
whatsapp_spec.rb fix: Setup webhooks for manual WhatsApp Cloud channel creation (#13278) 2026-01-19 14:12:36 +04:00