Disable notification sounds by default

This commit is contained in:
Alex Gleason 2020-05-18 19:43:58 -05:00
parent 0431feb22a
commit 2fabef83be
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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,
}),
}),