From a428dfc3f447665487cdc3e56d8554d6085177bf Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 11 Feb 2025 17:45:31 +0530 Subject: [PATCH] feat: handle mine event for incoming messages (#10867) Handle `mine` condition, missed in https://github.com/chatwoot/chatwoot/pull/10529 --- .../helper/AudioAlerts/DashboardAudioNotificationHelper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/helper/AudioAlerts/DashboardAudioNotificationHelper.js b/app/javascript/dashboard/helper/AudioAlerts/DashboardAudioNotificationHelper.js index 21cb0fc9f..9e79bb3a2 100644 --- a/app/javascript/dashboard/helper/AudioAlerts/DashboardAudioNotificationHelper.js +++ b/app/javascript/dashboard/helper/AudioAlerts/DashboardAudioNotificationHelper.js @@ -152,7 +152,10 @@ export class DashboardAudioNotificationHelper { const shouldPlayAudio = []; - if (audioAlertType.includes(EVENT_TYPES.ASSIGNED)) { + if ( + audioAlertType.includes(EVENT_TYPES.ASSIGNED) || + audioAlertType.includes('mine') + ) { shouldPlayAudio.push(assignedToMe); } if (audioAlertType.includes(EVENT_TYPES.UNASSIGNED)) {