iachat/app/javascript/dashboard/helper
Sivin Varghese 80e6a2a479
chore: Disable audio alert for pending status conversation (#10777)
# Pull Request Template

## Description

This PR disables audio alerts for conversations with a status of
"pending." It applies to all notification event types, ensuring that
audio will not play for conversations marked as "pending."

Fixes
https://linear.app/chatwoot/issue/CW-3951/audio-alerts-shouldnt-be-triggered-in-conversation-is-in-pending-state

## Type of change

- [x] Breaking change (fix or feature that would cause existing
functionality not to work as expected)

## How Has This Been Tested?

Steps:
1. Create a conversation.
2. Then mark the conversation as pending.
3. Send message.
4. Make sure audio notification are enabled.


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-01-28 18:49:12 +05:30
..
AnalyticsHelper feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
AudioAlerts chore: Disable audio alert for pending status conversation (#10777) 2025-01-28 18:49:12 +05:30
CacheHelper feat: fallback to DB localStorage for idb names (#8682) 2024-01-15 15:08:15 +05:30
commandbar feat: Rewrite command bar mixin to a composable (#10015) 2024-08-26 15:55:59 +05:30
specs feat(v4): Update Inbox view card design (#10599) 2025-01-07 21:11:54 +05:30
actionCable.js fix: Remove Report API calls from being called on every event (#10691) 2025-01-15 11:23:00 -08:00
actionQueryGenerator.js fix: Unable to save automation "send email to team" (#6052) 2022-12-12 20:10:33 +05:30
agentHelper.js feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
APIHelper.js fix: Allow users to login even if they have access to more than 15 accounts (#4475) 2022-04-14 20:54:26 +05:30
auditlogHelper.js fix: TypeError: Cannot read properties of null (reading 'user_id') (#9884) 2024-08-07 14:42:01 +05:30
automationHelper.js feat: Rewrite automations/methodsMixin to a composable (#9956) 2024-08-27 12:30:08 +05:30
commons.js fix: Update the translation for the text used in isTyping method (#10384) 2024-11-04 20:04:08 -08:00
conversationHelper.js fix: TypeError: t.messages.at is not a function (#9950) 2024-08-13 19:16:15 +05:30
customViewsHelper.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
DOMHelpers.js feat: add promise based loader for FB script (#9780) 2024-07-22 11:32:05 +05:30
downloadHelper.js feat: Add business hours in downloadable reports (#4674) 2022-05-27 09:26:59 +05:30
editorHelper.js feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
featureHelper.js feat: Add frontend changes for Captain limits (#10749) 2025-01-24 09:21:09 -08:00
filterQueryGenerator.js chore: Support multiple values for automation message content (#7871) 2023-09-19 13:04:58 +05:30
flag.js chore: Replace packages with native functions (#5140) 2022-08-03 17:08:21 +05:30
inbox.js fix: New compose conversation form (#10548) 2024-12-06 15:40:06 +05:30
labelColor.js feat: Create portal UI improvements (#5261) 2022-08-18 17:11:19 +05:30
permissionsHelper.js chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
portalHelper.js feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
preChat.js feat: Support Regex validation for custom attributes (#7856) 2024-01-23 18:01:57 +04:00
pushHelper.js feat: Replace alertMixin usage with useAlert (#9793) 2024-07-23 16:41:11 +05:30
ReconnectService.js feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
routeHelpers.js chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
scriptHelpers.js feat: update notification settings (#10529) 2024-12-05 19:05:04 +05:30
snoozeHelpers.js feat(v4): Update Inbox view card design (#10599) 2025-01-07 21:11:54 +05:30
states.js Move src to dashboard (#152) 2019-10-16 14:36:17 +05:30
themeHelper.js feat: Add the option to toggle the dark/light color-scheme (#7662) 2023-08-03 12:21:45 -07:00
uploadHelper.js feat: Add the ability to paste images to editor (#10072) 2024-09-11 09:44:13 +05:30
URLHelper.js feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
validations.js chore: Remove unused files in contact (#10570) 2024-12-11 19:29:24 -08:00