Add custom emojis to the emoji picker (#5052)

This commit is contained in:
Eugen Rochko
2017-09-23 05:40:28 +02:00
committed by GitHub
parent 293972f716
commit 66126f3021
8 changed files with 91 additions and 2 deletions

View File

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

View File

@ -20,6 +20,7 @@ import search from './search';
import media_attachments from './media_attachments';
import notifications from './notifications';
import height_cache from './height_cache';
import custom_emojis from './custom_emojis';
const reducers = {
timelines,
@ -43,6 +44,7 @@ const reducers = {
media_attachments,
notifications,
height_cache,
custom_emojis,
};
export default combineReducers(reducers);