From 2fabef83be468264dcb3afd0f57e03c127692645 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 18 May 2020 19:43:58 -0500 Subject: [PATCH] Disable notification sounds by default --- app/gabsocial/actions/notifications.js | 4 ++-- app/gabsocial/actions/settings.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/gabsocial/actions/notifications.js b/app/gabsocial/actions/notifications.js index 56769210b..8f2b2f1c2 100644 --- a/app/gabsocial/actions/notifications.js +++ b/app/gabsocial/actions/notifications.js @@ -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; diff --git a/app/gabsocial/actions/settings.js b/app/gabsocial/actions/settings.js index 2ef878e5b..c35da0380 100644 --- a/app/gabsocial/actions/settings.js +++ b/app/gabsocial/actions/settings.js @@ -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, }), }),