mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
Fix boops?
This commit is contained in:
parent
cde0476ca2
commit
c468446f4c
1 changed files with 3 additions and 3 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue