mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-11-01 23:21:11 +01:00
488584bfc1
* Track frequently used emojis in web UI * Persist emoji usage, but debounce commits to the settings API * Fix #5144 - Add tooltips to picker * Display only 2 lines of frequently used emojis
14 lines
238 B
JavaScript
14 lines
238 B
JavaScript
import { saveSettings } from './settings';
|
|
|
|
export const EMOJI_USE = 'EMOJI_USE';
|
|
|
|
export function useEmoji(emoji) {
|
|
return dispatch => {
|
|
dispatch({
|
|
type: EMOJI_USE,
|
|
emoji,
|
|
});
|
|
|
|
dispatch(saveSettings());
|
|
};
|
|
};
|