iachat/app/helpers
Gabriel Jablonski 8cf6e8907f
release v4.12.0-fazer-ai.47 (#259)
* fix(whatsapp): add idempotent message sending to prevent duplicates on timeout retry

When sending media messages via Baileys, Net::ReadTimeout causes Sidekiq to
retry the job, potentially sending the same message multiple times. This adds
a chatwootMessageId parameter to the Baileys API request, enabling server-side
deduplication via Redis. Also increases HTTP timeout to 120s and channel lock
to 130s to reduce false timeouts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address review feedback

- Use error.class.name assertions for parallel/reloading safety
- Assert reconnect endpoint was not called on 409 (stronger assertion)

* fix: address review feedback (round 2)

- Only release channel lock in ensure if it was actually acquired (prevents
  clearing another worker's lock on timeout)
- Assert chatwootMessageId in reproduction spec body matcher

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 20:52:26 -03:00
..
api feat: better errors for SMTP (#13401) 2026-02-23 16:00:17 +05:30
filters Merge branch 'chatwoot/develop' into chore/merge-upstream-4.12.0 2026-03-20 00:27:45 -03:00
instagram feat: Added the ability to create Instagram channel (#11182) 2025-04-03 13:57:14 +05:30
linear feat: move Linear config to installation_config (#10999) 2025-02-28 14:20:27 +05:30
shopify feat(apps): Shopify Integration (#11101) 2025-03-19 15:37:55 -07:00
super_admin feat: new Captain Editor (#13235) 2026-01-21 13:39:07 +05:30
tiktok feat: TikTok channel (#12741) 2025-12-17 07:54:50 -08:00
application_helper.rb feat: Add help URLs for features in features.yml (#9134) 2024-03-21 10:30:46 -07:00
baileys_helper.rb release v4.12.0-fazer-ai.47 (#259) 2026-04-08 20:52:26 -03:00
billing_helper.rb feat: Upgrade page instead of banner (#11202) 2025-03-28 02:28:17 -07:00
cache_keys_helper.rb feat: baileys provider for whatsapp (#7) 2025-04-03 23:28:38 -03:00
contact_helper.rb feat: Add contact helper (#8989) 2024-03-06 17:39:39 +05:30
data_helper.rb Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
date_range_helper.rb fix: inconsistency in report and summary for metric counts (#6817) 2023-04-20 12:55:04 +05:30
email_helper.rb Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
file_type_helper.rb fix: check the content type for the file when uploading from cloud storage (#5378) 2022-10-21 18:05:36 -07:00
frontend_urls_helper.rb chore: drop FRONTEND_URL_EXTERNAL var 2025-05-02 20:44:10 -03:00
home_helper.rb Initial Commit 2019-08-14 15:18:44 +05:30
message_format_helper.rb fix: Handle emoji and special characters in mention notifications (#11857) 2025-07-03 11:32:13 +05:30
portal_helper.rb fix: Add URL validation and rate limiting for contact avatar sync (#11979) 2025-09-10 20:08:06 +05:30
report_helper.rb fix: wrong resolution count in timeseries reports (#12261) 2025-09-03 15:47:16 +05:30
reporting_event_helper.rb Merge branch 'main' into chore/merge-upstream-4.5.0 2025-08-20 11:20:31 -03:00
timezone_helper.rb Merge branch 'chatwoot/develop' into chore/merge-upstream-4.12.0 2026-03-20 00:27:45 -03:00
widget_helper.rb chore: Enhance contact merge action for identified users (#4886) 2022-06-23 15:48:56 +05:30