iachat/spec/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
..
instagram feat: Added the ability to create Instagram channel (#11182) 2025-04-03 13:57:14 +05:30
linear feat: Linear OAuth 2.0 (#10851) 2025-02-27 18:15:53 +05:30
shopify feat(apps): Shopify Integration (#11101) 2025-03-19 15:37:55 -07:00
baileys_helper_spec.rb release v4.12.0-fazer-ai.47 (#259) 2026-04-08 20:52:26 -03:00
billing_helper_spec.rb feat: Add APIs for limit check in accounts (#7242) 2023-06-15 20:11:40 -07:00
cache_keys_helper_spec.rb feat: baileys provider for whatsapp (#7) 2025-04-03 23:28:38 -03:00
contact_helper_spec.rb feat: Add contact helper (#8989) 2024-03-06 17:39:39 +05:30
email_helper_spec.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
frontend_urls_helper_spec.rb chore: drop FRONTEND_URL_EXTERNAL var 2025-05-02 20:44:10 -03:00
message_format_helper_spec.rb fix: Handle emoji and special characters in mention notifications (#11857) 2025-07-03 11:32:13 +05:30
portal_helper_spec.rb chore: Refactor UTM params to stay compliant with standards (#12312) 2025-08-29 11:46:52 -07:00
reporting_event_helper_spec.rb fix: incorrect first response time for reopened conversations (#12058) 2025-08-13 16:39:43 +05:30
url_helper_spec.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30