iachat/spec/services
Sojan Jose c75ed1ef69
fix: Prevent duplicate notifications for mentions (#10675)
This PR addresses an issue where mention_notification was being
overwritten by assigned_conversation_new_message notifications.
Similarly, participating_conversation_new_message was taking priority
over assigned_conversation_new_message.

The fix ensures that additional notifications are not created in these
scenarios by establishing a priority order for notifications as follows:

1. mention_notification
2. assigned_conversation_new_message
3. participating_conversation_new_message

This change maintains consistency and prevents redundant notifications.

----

Note: In the older implementation of notifications in Chatwoot,
notification objects were created only if the user had subscribed to a
specific notification type. With the new inbox_view model, we are
changing this approach to create notification objects in all cases. This
PR updates the services to remove reliance on notification preferences,
simplifying the logic.


----

Caveat: Since we don’t create extra notifications for new messages if a
mention_notification already exists, a user subscribed to
new_message_notification push/email notifications but not to
mention_notification will not receive notifications in these cases.
2025-01-13 11:20:31 +05:30
..
agent_bots feat: Add native support for CSML in agent_bot API (#4913) 2022-06-23 19:17:46 +05:30
auto_assignment chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
automation_rules feat: validate query conditions (#10595) 2024-12-17 17:16:37 +05:30
contacts feat: validate query conditions (#10595) 2024-12-17 17:16:37 +05:30
conversations feat: validate query conditions (#10595) 2024-12-17 17:16:37 +05:30
facebook feat: allow multiple files for FB and Insta [CW-3019] (#8783) 2024-01-28 13:20:54 +05:30
google feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
imap feat: Add configurable interval for IMAP sync (#9302) 2024-04-25 18:58:20 -07:00
instagram feat: allow multiple files for FB and Insta [CW-3019] (#8783) 2024-01-28 13:20:54 +05:30
internal fix: RemoveStaleRedisKeys service (#10562) 2024-12-11 03:38:25 +08:00
labels fix: Update associations when a label is updated (#3046) 2021-09-21 10:16:32 +05:30
line fix: Fix line sticker URL to prevent certain images from failing to d… (#10416) 2024-11-15 17:27:58 +04:00
llm_formatter feat(ee): Add copilot integration (v1) to the conversation sidebar (#10566) 2024-12-10 15:36:48 -08:00
macros feat: Add the ability to self-assign conversations in macros (#8048) 2023-10-10 09:38:23 +05:30
message_templates chore: Disable message hooks for conversations without incoming message (#7620) 2023-07-26 20:38:49 +03:00
messages fix: Prevent duplicate notifications for mentions (#10675) 2025-01-13 11:20:31 +05:30
microsoft chore: Refactor RefreshOauthTokenService to improve readability (#8820) 2024-01-31 12:24:12 +04:00
notification fix: Add catch for additional webpush errors (#9662) 2024-06-21 14:58:36 -07:00
sms feat: Bandwidth sms channel delivery reports (#8198) 2023-10-27 14:07:15 -07:00
telegram feat: Support document file uploads on telegram channel (#9266) 2024-05-02 14:05:14 -07:00
twilio fix: Twilo attachment download fallback to the step where authorization headers are not passed. (#8681) 2024-01-11 17:23:31 -08:00
twitter chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
whatsapp fix: Avoid processing reactions, ephemeral, request_welcome or unsupported messages (#8780) 2024-01-25 11:40:18 +04:00
action_service_spec.rb feat: Add the ability to un-assign teams using automation (#9668) 2024-06-26 12:40:36 -07:00
search_service_spec.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30