Disable notification sounds by default
This commit is contained in:
parent
0431feb22a
commit
2fabef83be
|
@ -71,9 +71,9 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
|
||||||
|
|
||||||
export function updateNotificationsQueue(notification, intlMessages, intlLocale, curPath) {
|
export function updateNotificationsQueue(notification, intlMessages, intlLocale, curPath) {
|
||||||
return (dispatch, getState) => {
|
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 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;
|
let filtered = false;
|
||||||
|
|
||||||
|
|
|
@ -63,11 +63,11 @@ const defaultSettings = ImmutableMap({
|
||||||
}),
|
}),
|
||||||
|
|
||||||
sounds: ImmutableMap({
|
sounds: ImmutableMap({
|
||||||
follow: true,
|
follow: false,
|
||||||
favourite: true,
|
favourite: false,
|
||||||
reblog: true,
|
reblog: false,
|
||||||
mention: true,
|
mention: false,
|
||||||
poll: true,
|
poll: false,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue