mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-09 04:22:42 -05:00
load legacy emoji search async
This commit is contained in:
parent
a82af51d03
commit
520fa03dc1
|
|
@ -592,8 +592,8 @@ const fetchComposeSuggestionsAccounts = throttle((dispatch, token) => {
|
|||
|
||||
const fetchComposeSuggestionsEmojis = async (dispatch, token) => {
|
||||
const custom = await fetchCustomEmojiData();
|
||||
const { emojiSearch } = await import('@/mastodon/features/emoji/emoji_mart_search_light');
|
||||
const results = emojiSearch(token.replace(':', ''), { maxResults: 5, custom });
|
||||
const { search } = await import('@/mastodon/features/emoji/emoji_mart_search_light');
|
||||
const results = search(token.replace(':', ''), { maxResults: 5, custom });
|
||||
dispatch(readyComposeSuggestionsEmojis(token, results));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user