about summary refs log tree commit diff
path: root/app/javascript/mastodon/reducers/custom_emojis.js
blob: 15bba7bccd3d3811a56d77f5e172c565fa028615 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;
  }
};