load legacy emoji search async

This commit is contained in:
ChaosExAnima 2026-05-08 14:26:53 +02:00
parent a82af51d03
commit 520fa03dc1
No known key found for this signature in database
GPG Key ID: 8F2B333100FB6117

View File

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