Fix boops?

This commit is contained in:
Eugen Rochko 2017-01-17 20:28:32 +01:00
parent cde0476ca2
commit c468446f4c

View file

@ -24,15 +24,15 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
export function updateNotifications(notification, intlMessages, intlLocale) { export function updateNotifications(notification, intlMessages, intlLocale) {
return (dispatch, getState) => { return (dispatch, getState) => {
const showAlert = getState().getIn(['notifications', 'settings', 'alerts', notification.type], false); const showAlert = getState().getIn(['notifications', 'settings', 'alerts', notification.type], true);
const playSound = getState().getIn(['notifications', 'settings', 'sounds', notification.type], false); const playSound = getState().getIn(['notifications', 'settings', 'sounds', notification.type], true);
dispatch({ dispatch({
type: NOTIFICATIONS_UPDATE, type: NOTIFICATIONS_UPDATE,
notification, notification,
account: notification.account, account: notification.account,
status: notification.status, status: notification.status,
meta: playSound ? { sound: 'boop' } : null meta: playSound ? { sound: 'boop' } : undefined
}); });
fetchRelatedRelationships(dispatch, [notification]); fetchRelatedRelationships(dispatch, [notification]);