feat: handle mine event for incoming messages (#10867)

Handle `mine` condition, missed in
https://github.com/chatwoot/chatwoot/pull/10529
This commit is contained in:
Shivam Mishra
2025-02-11 17:45:31 +05:30
committed by GitHub
parent 4b12a8a51e
commit a428dfc3f4

View File

@@ -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)) {