Add sounds for notifications. Boop by @jk@mastodon.social

This commit is contained in:
Eugen Rochko
2017-01-17 20:09:03 +01:00
parent d7a7baa9a7
commit fcb5a85cdd
10 changed files with 50 additions and 48 deletions

View File

@ -23,6 +23,13 @@ const initialState = Immutable.Map({
favourite: true,
reblog: true,
mention: true
}),
sounds: Immutable.Map({
follow: true,
favourite: true,
reblog: true,
mention: true
})
})
});
@ -30,7 +37,7 @@ const initialState = Immutable.Map({
export default function settings(state = initialState, action) {
switch(action.type) {
case STORE_HYDRATE:
return state.merge(action.state.get('settings'));
return state.mergeDeep(action.state.get('settings'));
case SETTING_CHANGE:
return state.setIn(action.key, action.value);
default: