Merge pull request #238 from QuickMythril/testing-20231219

Allow notify sound when popups are disabled
This commit is contained in:
AlphaX-Projects 2023-12-28 14:41:51 +01:00 committed by GitHub
commit 28c6e56f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,9 @@ export const newMessage = (data) => {
store.dispatch(doPageUrl(pageUrl))
}
}
// If sounds are enabled, but notifications are not
} else if (store.getState().user.notifications.q_chat.playSound) {
alert.play()
}
}
@ -102,6 +105,9 @@ export const newMessageNotificationQapp = (data) => {
}
}
}
// If sounds are enabled, but notifications are not
} else if (store.getState().user.notifications.q_chat.playSound) {
alert.play()
}
}
@ -253,6 +259,9 @@ export const newMessageNotificationQappLocal = (data) => {
}
}
// If sounds are enabled, but notifications are not
} else if (store.getState().user.notifications.q_chat.playSound) {
alert.play()
}
}