sforkowany z mirror/soapbox
Disable notification sounds by default
rodzic
0431feb22a
commit
2fabef83be
|
@ -71,9 +71,9 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
|
|||
|
||||
export function updateNotificationsQueue(notification, intlMessages, intlLocale, curPath) {
|
||||
return (dispatch, getState) => {
|
||||
const showAlert = getSettings(getState()).getIn(['notifications', 'alerts', notification.type], true);
|
||||
const showAlert = getSettings(getState()).getIn(['notifications', 'alerts', notification.type]);
|
||||
const filters = getFilters(getState(), { contextType: 'notifications' });
|
||||
const playSound = getSettings(getState()).getIn(['notifications', 'sounds', notification.type], true);
|
||||
const playSound = getSettings(getState()).getIn(['notifications', 'sounds', notification.type]);
|
||||
|
||||
let filtered = false;
|
||||
|
||||
|
|
|
@ -63,11 +63,11 @@ const defaultSettings = ImmutableMap({
|
|||
}),
|
||||
|
||||
sounds: ImmutableMap({
|
||||
follow: true,
|
||||
favourite: true,
|
||||
reblog: true,
|
||||
mention: true,
|
||||
poll: true,
|
||||
follow: false,
|
||||
favourite: false,
|
||||
reblog: false,
|
||||
mention: false,
|
||||
poll: false,
|
||||
}),
|
||||
}),
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue