Skip to content
Snippets Groups Projects
Commit c468446f authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix boops?

parent cde0476c
No related branches found
No related tags found
No related merge requests found
......@@ -24,15 +24,15 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
export function updateNotifications(notification, intlMessages, intlLocale) {
return (dispatch, getState) => {
const showAlert = getState().getIn(['notifications', 'settings', 'alerts', notification.type], false);
const playSound = getState().getIn(['notifications', 'settings', 'sounds', notification.type], false);
const showAlert = getState().getIn(['notifications', 'settings', 'alerts', notification.type], true);
const playSound = getState().getIn(['notifications', 'settings', 'sounds', notification.type], true);
dispatch({
type: NOTIFICATIONS_UPDATE,
notification,
account: notification.account,
status: notification.status,
meta: playSound ? { sound: 'boop' } : null
meta: playSound ? { sound: 'boop' } : undefined
});
fetchRelatedRelationships(dispatch, [notification]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment