diff options
Diffstat (limited to 'app/javascript/mastodon/reducers/custom_emojis.js')
-rw-r--r-- | app/javascript/mastodon/reducers/custom_emojis.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/javascript/mastodon/reducers/custom_emojis.js b/app/javascript/mastodon/reducers/custom_emojis.js new file mode 100644 index 000000000..15bba7bcc --- /dev/null +++ b/app/javascript/mastodon/reducers/custom_emojis.js @@ -0,0 +1,13 @@ +import { List as ImmutableList } from 'immutable'; +import { STORE_HYDRATE } from '../actions/store'; + +const initialState = ImmutableList(); + +export default function statuses(state = initialState, action) { + switch(action.type) { + case STORE_HYDRATE: + return action.state.get('custom_emojis'); + default: + return state; + } +}; |