Changeset View
Changeset View
Standalone View
Standalone View
native/chat/chat-input-bar.react.js
Show First 20 Lines • Show All 1,306 Lines • ▼ Show 20 Lines | React.useMemo(() => { | ||||
return { | return { | ||||
textBeforeAtSymbol: typeaheadRegexMatches[1] ?? '', | textBeforeAtSymbol: typeaheadRegexMatches[1] ?? '', | ||||
query: typeaheadRegexMatches[4] ?? '', | query: typeaheadRegexMatches[4] ?? '', | ||||
}; | }; | ||||
}, [typeaheadRegexMatches]); | }, [typeaheadRegexMatches]); | ||||
const suggestedUsers = useMentionTypeaheadUserSuggestions( | const suggestedUsers = useMentionTypeaheadUserSuggestions( | ||||
userMentionsCandidates, | userMentionsCandidates, | ||||
viewerID, | |||||
typeaheadMatchedStrings, | typeaheadMatchedStrings, | ||||
); | ); | ||||
const suggestedChats = useMentionTypeaheadChatSuggestions( | const suggestedChats = useMentionTypeaheadChatSuggestions( | ||||
chatMentionSearchIndex, | chatMentionSearchIndex, | ||||
chatMentionCandidates, | chatMentionCandidates, | ||||
typeaheadMatchedStrings, | typeaheadMatchedStrings, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |