diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-17 20:09:03 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-17 20:09:03 +0100 |
commit | fcb5a85cdd21b8a48c16cd02885933bcbdb07ec2 (patch) | |
tree | 25bb41359a72f821730045f9e55cb60b096e4257 /app/assets/javascripts/components/reducers | |
parent | d7a7baa9a7f6b44a3c0b7232e909e456c9231543 (diff) |
Add sounds for notifications. Boop by @jk@mastodon.social
Diffstat (limited to 'app/assets/javascripts/components/reducers')
-rw-r--r-- | app/assets/javascripts/components/reducers/settings.jsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/settings.jsx b/app/assets/javascripts/components/reducers/settings.jsx index 8bd9edae2..8acc3faca 100644 --- a/app/assets/javascripts/components/reducers/settings.jsx +++ b/app/assets/javascripts/components/reducers/settings.jsx @@ -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: |