diff --git a/app/views/RoomView/components/ReactionPicker.tsx b/app/views/RoomView/components/ReactionPicker.tsx index 1724920558..d5db77e285 100644 --- a/app/views/RoomView/components/ReactionPicker.tsx +++ b/app/views/RoomView/components/ReactionPicker.tsx @@ -21,17 +21,17 @@ const ReactionPicker = ({ onEmojiSelected, messageId, reactionClose }: IReaction const [searchedEmojis, setSearchedEmojis] = useState([]); const [searching, setSearching] = useState(false); - const handleTextChange = useDebounce((text: string) => { - setSearching(text !== ''); - handleSearchEmojis(text); - }, textInputDebounceTime); - const handleSearchEmojis = async (text: string) => { logEvent(events.REACTION_PICKER_SEARCH_EMOJIS); const emojis = await searchEmojis(text); setSearchedEmojis(emojis); }; + const handleTextChange = useDebounce((text: string) => { + setSearching(text !== ''); + handleSearchEmojis(text); + }, textInputDebounceTime); + const handleEmojiSelect = (_eventType: EventTypes, emoji?: IEmoji) => { logEvent(events.REACTION_PICKER_EMOJI_SELECTED); if (messageId && emoji) { diff --git a/app/views/RoomView/reactCompilerContract.test.ts b/app/views/RoomView/reactCompilerContract.test.ts index d19cdfc764..27d37650a6 100644 --- a/app/views/RoomView/reactCompilerContract.test.ts +++ b/app/views/RoomView/reactCompilerContract.test.ts @@ -17,9 +17,7 @@ const EXTRA_FILES: string[] = [ // Files the React Compiler silently skips today. Fixing the underlying cause must remove its file from this list. const KNOWN_SKIPPED: string[] = [ // Disables a React ESLint rule, which makes the compiler bail out. - 'app/views/RoomView/List/hooks/useMessages.ts', - // Reads a variable before its declaration. - 'app/views/RoomView/components/ReactionPicker.tsx' + 'app/views/RoomView/List/hooks/useMessages.ts' ]; const collectSourceFiles = (dir: string): string[] => {