iachat/app/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 Exception tracker with account (#6603) 2023-03-03 12:14:44 +05:30
auto_assignment chore: Update typo in inbox_round_robin_service (#9590) 2024-06-06 18:49:53 -07:00
automation_rules feat: validate query conditions (#10595) 2024-12-17 17:16:37 +05:30
base feat: Enable Slack Integration in all channels (#1175) 2020-08-29 01:39:41 +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
data_import fix: downcase email before finding (#8921) 2024-02-21 18:51:00 +05:30
email_templates chore: Fix emails being sent with the wrong translations (#2236) 2021-06-08 22:45:01 +05:30
facebook feat: allow multiple files for FB and Insta [CW-3019] (#8783) 2024-01-28 13:20:54 +05:30
geocoder fix: ip-lookup database lazy loading for all environments (#8052) 2024-10-22 23:18:30 -07:00
google feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
imap feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
instagram fix: Delete attachments when removing them from Instagram in real-time (#9996) 2024-08-21 20:10:31 +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 feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
notification fix: Update notification payload (#9666) 2024-06-21 17:28:48 -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: Twilio channel attachment issues (#10167) 2024-09-25 18:03:28 -07:00
twitter chore: Use "create!" and "save!" bang methods when not checking the result (#5358) 2022-09-13 17:40:06 +05:30
whatsapp fix: Avoid processing reactions, ephemeral, request_welcome or unsupported messages (#8780) 2024-01-25 11:40:18 +04:00
widget chore: Update method to access "secret_key_base" (#7337) 2023-06-19 16:11:19 +05:30
action_service.rb feat: Add the ability to un-assign teams using automation (#9668) 2024-06-26 12:40:36 -07:00
base_refresh_oauth_token_service.rb feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
filter_service.rb feat: validate query conditions (#10595) 2024-12-17 17:16:37 +05:30
ip_lookup_service.rb feat(poc): Disable widget based on country (#6658) 2023-03-14 09:09:57 -07:00
search_service.rb chore: Search optimisations (#6644) 2023-03-13 19:10:31 +05:30