Disable notification sounds by default

stable/1.0.x
Alex Gleason 2020-05-18 19:43:58 -05:00
rodzic 0431feb22a
commit 2fabef83be
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

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

Wyświetl plik

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