Fix being unable to disable sound for quote update notification (#38537)
This commit is contained in:
parent
f7c00d8d4e
commit
954cc92a6d
@ -26,8 +26,10 @@ defineMessages({
|
|||||||
|
|
||||||
export function updateNotifications(notification, intlMessages, intlLocale) {
|
export function updateNotifications(notification, intlMessages, intlLocale) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', notification.type], true);
|
const filterType = notification.type === 'quoted_update' ? 'update' : notification.type;
|
||||||
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
|
|
||||||
|
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', filterType], true);
|
||||||
|
const playSound = getState().getIn(['settings', 'notifications', 'sounds', filterType], true);
|
||||||
|
|
||||||
let filtered = false;
|
let filtered = false;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user