fix: Audio notification instance not updating in realtime
This commit is contained in:
@@ -36,6 +36,18 @@ class DashboardAudioNotificationHelper {
|
||||
initFaviconSwitcher();
|
||||
};
|
||||
|
||||
updateInstanceValues = ({
|
||||
alwaysPlayAudioAlert,
|
||||
alertIfUnreadConversationExist,
|
||||
audioAlertType,
|
||||
audioAlertTone,
|
||||
}) => {
|
||||
this.audioAlertType = audioAlertType;
|
||||
this.playAlertOnlyWhenHidden = !alwaysPlayAudioAlert;
|
||||
this.alertIfUnreadConversationExist = alertIfUnreadConversationExist;
|
||||
this.audioAlertTone = audioAlertTone;
|
||||
};
|
||||
|
||||
onAudioListenEvent = async () => {
|
||||
try {
|
||||
await getAlertAudio('', {
|
||||
|
||||
Reference in New Issue
Block a user