Add custom emojis to the emoji picker (#5052)
This commit is contained in:
parent
293972f716
commit
66126f3021
8 changed files with 91 additions and 2 deletions
13
app/javascript/mastodon/reducers/custom_emojis.js
Normal file
13
app/javascript/mastodon/reducers/custom_emojis.js
Normal 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;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue