From 2c088850b736c8594b435515a19ace4d7b5d5f7c Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Tue, 19 Dec 2023 13:57:42 -0500 Subject: [PATCH] Allow notify sound when popups are disabled --- .../notifications/notification-actions/new-message.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/notifications/notification-actions/new-message.js b/core/src/notifications/notification-actions/new-message.js index b25902f6..7dff4495 100644 --- a/core/src/notifications/notification-actions/new-message.js +++ b/core/src/notifications/notification-actions/new-message.js @@ -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() } }