activitypub-academy/app/javascript/mastodon/reducers/custom_emojis.js
2017-09-23 05:40:28 +02:00

13 lines
334 B
JavaScript

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