|
|
@ -70,7 +70,8 @@ export const loadPending = () => ({
|
|
|
|
|
|
|
|
|
|
|
|
export function updateNotifications(notification, intlMessages, intlLocale) {
|
|
|
|
export function updateNotifications(notification, intlMessages, intlLocale) {
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
const showInColumn = getState().getIn(['settings', 'notifications', 'shows', notification.type], true);
|
|
|
|
const activeFilter = getState().getIn(['settings', 'notifications', 'quickFilter', 'active']);
|
|
|
|
|
|
|
|
const showInColumn = activeFilter === 'all' ? getState().getIn(['settings', 'notifications', 'shows', notification.type], true) : activeFilter === notification.type;
|
|
|
|
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', notification.type], true);
|
|
|
|
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', notification.type], true);
|
|
|
|
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
|
|
|
|
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
|
|
|
|
const filters = getFiltersRegex(getState(), { contextType: 'notifications' });
|
|
|
|
const filters = getFiltersRegex(getState(), { contextType: 'notifications' });
|
|
|
|