iachat/spec
Pranav Raj S b7c9f779ad
fix: Avoid processing reactions, ephemeral, request_welcome or unsupported messages (#8780)
Currently, we do not support reactions, ephemeral messages, or the request_welcome event for the WhatsApp channel. However, if this is the first event we receive in Chatwoot (i.e., there is no previous conversation or contact in Chatwoot), it will create a contact and a conversation without any messages. This confuses our customer, as it may appear that Chatwoot has missed some messages. There are multiple cases where this might be the first event we receive in Chatwoot. One quick example is when the user has sent an outbound campaign from another tool and their customers reacted to the message.

Another event like this is request_welcome event. WhatsApp has a concept for welcome messages. You can send an outbound message even though the user has not send a message. You can receive notifications through a webhook whenever a WhatsApp user initiates a chat with you for the first time. (Read the Welcome message section: https://developers.facebook.com/docs/whatsapp/cloud-api/phone-numbers/conversational-components/ ). Although this can help the business send a pro-active message to the user, we don't have it scoped in our feature set. For now, I'm ignoring this event.

Fixes https://linear.app/chatwoot/issue/CW-3018/whatsapp-handle-request-welcome-case-properly
Fixes https://linear.app/chatwoot/issue/CW-3017/whatsapp-handle-reactions-properly
2024-01-25 11:40:18 +04:00
..
actions fix: Migrate notes when merging the contacts (#8749) 2024-01-20 10:32:18 +04:00
assets chore: Contact import improvements (#7787) 2023-08-23 23:24:47 -07:00
builders chore: Get all notification API improvments (#8549) 2024-01-17 09:02:18 +05:30
channels chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
configs chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
controllers chore: Fix flaky contacts spec (#8773) 2024-01-24 13:58:27 +04:00
cypress chore: Upgrade Cypress to 13.4.0 (#8271) 2023-10-31 19:39:34 -07:00
dispatchers Non blocking event dispatch (#652) 2020-03-29 19:18:30 +05:30
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
enterprise feat: sla 1 - refactor sla_policies model and add applied_sla model (#8602) 2024-01-23 23:48:02 +05:30
factories feat: sla 1 - refactor sla_policies model and add applied_sla model (#8602) 2024-01-23 23:48:02 +05:30
finders chore: Get all notification API improvments (#8549) 2024-01-17 09:02:18 +05:30
fixtures chore: Fix sentry errors in email processing for bounce notifications (#8677) 2024-01-10 14:30:23 -08:00
helpers fix: Undefined method `length' for nil:NilClass (#8491) 2023-12-05 16:34:29 +05:30
integration Fix url in emails, add frontendURL helper (#19) 2019-08-25 19:59:28 +05:30
jobs fix: Avoid processing reactions, ephemeral, request_welcome or unsupported messages (#8780) 2024-01-25 11:40:18 +04:00
lib chore: Unset Redis config after spec (#8685) 2024-01-10 15:32:48 -08:00
listeners fix: SQL error when rules with missing attributes is triggered (#8673) 2024-01-22 16:09:34 +05:30
mailboxes feat(perf): update query to do a simpler search [CW-2997] (#8763) 2024-01-23 14:20:00 +04:00
mailers feat: Handle notification.deleted action cable event (#8501) 2023-12-06 16:49:00 +05:30
models feat(perf): update query to do a simpler search [CW-2997] (#8763) 2024-01-23 14:20:00 +04:00
policies Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
presenters fix: Consider the emails where in-reply-to header has multiple values (#7715) 2023-08-11 17:53:57 -07:00
requests/api/v1 feat: Update the slack integration-flow to allow users to select the channel (#7637) 2023-07-28 14:50:30 -07:00
services fix: Avoid processing reactions, ephemeral, request_welcome or unsupported messages (#8780) 2024-01-25 11:40:18 +04:00
support feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
workers chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
cypress.config.js chore: Upgrade Cypress to 13.4.0 (#8271) 2023-10-31 19:39:34 -07:00
rails_helper.rb feat: locking and retry in FB message parsing (#7701) 2023-08-23 09:48:17 +07:00
spec_helper.rb chore: upgrade ruby to 3.1.3 (#5555) 2023-01-24 23:55:07 +05:30
test_helper.rb Chore: Setup test coverage in codeclimate [#332] (#333) 2019-12-02 08:57:11 +05:30