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:
@@ -152,7 +152,10 @@ export class DashboardAudioNotificationHelper {
|
|||||||
|
|
||||||
const shouldPlayAudio = [];
|
const shouldPlayAudio = [];
|
||||||
|
|
||||||
if (audioAlertType.includes(EVENT_TYPES.ASSIGNED)) {
|
if (
|
||||||
|
audioAlertType.includes(EVENT_TYPES.ASSIGNED) ||
|
||||||
|
audioAlertType.includes('mine')
|
||||||
|
) {
|
||||||
shouldPlayAudio.push(assignedToMe);
|
shouldPlayAudio.push(assignedToMe);
|
||||||
}
|
}
|
||||||
if (audioAlertType.includes(EVENT_TYPES.UNASSIGNED)) {
|
if (audioAlertType.includes(EVENT_TYPES.UNASSIGNED)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user