iachat/spec/factories/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
..
channel_api.rb Feature: API Channel (#1052) 2020-07-21 12:15:24 +05:30
channel_email.rb fix(refactor): Cleanup the specs and the logic for FetchIMAP job (#8766) 2024-02-10 14:03:50 -08:00
channel_instagram.rb feat: Added the ability to create Instagram channel (#11182) 2025-04-03 13:57:14 +05:30
channel_line.rb feat: Line Channel (#2904) 2021-09-11 01:31:17 +05:30
channel_sms.rb chore: Provider APIs for SMS Channel - Bandwidth (#3889) 2022-02-03 15:22:13 -08:00
channel_telegram.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
channel_tiktok.rb feat: TikTok channel (#12741) 2025-12-17 07:54:50 -08:00
channel_voice.rb feat(voice): Improved voice call creation flow [EE] (#12268) 2025-08-22 13:38:23 +02:00
channel_whatsapp.rb fix: Setup webhooks for manual WhatsApp Cloud channel creation (#13278) 2026-01-19 14:12:36 +04:00
channel_widget.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30
facebook_pages.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30
instagram_channel.rb fix: Automatically remove expired story mention (#5300) 2022-12-08 15:55:24 +03:00
twilio_sms.rb fix: Extend phone number normalization to Twilio WhatsApp (#12655) 2025-10-28 18:16:29 +05:30
twitter_profiles.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30