feat: Adds the ability to play audio alert every 30 sec (#6150)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese
2022-12-29 22:16:58 -08:00
committed by GitHub
co-authored by Pranav Raj S
parent cd3b6ebf28
commit 4fba9ef1fb
4 changed files with 79 additions and 4 deletions
@@ -20,6 +20,7 @@ const initializeAudioAlerts = user => {
const {
always_play_audio_alert: alwaysPlayAudioAlert,
enable_audio_alerts: audioAlertType,
alert_if_unread_assigned_conversation_exist: alertIfUnreadConversationExist,
notification_tone: audioAlertTone,
} = uiSettings;
@@ -28,6 +29,7 @@ const initializeAudioAlerts = user => {
audioAlertType: audioAlertType || 'none',
audioAlertTone: audioAlertTone || 'ding',
alwaysPlayAudioAlert: alwaysPlayAudioAlert || false,
alertIfUnreadConversationExist: alertIfUnreadConversationExist || false,
});
};