Refactor initial state: auto_play_gif (#5576)
This commit is contained in:
parent
47d56438da
commit
60f962eedc
4 changed files with 8 additions and 15 deletions
|
@ -8,7 +8,7 @@ const initialState = ImmutableList();
|
|||
export default function custom_emojis(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case STORE_HYDRATE:
|
||||
emojiSearch('', { custom: buildCustomEmojis(action.state.get('custom_emojis', []), action.state.getIn(['meta', 'auto_play_gif'], false)) });
|
||||
emojiSearch('', { custom: buildCustomEmojis(action.state.get('custom_emojis', [])) });
|
||||
return action.state.get('custom_emojis');
|
||||
default:
|
||||
return state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue