Changeset View
Changeset View
Standalone View
Standalone View
web/chat/chat-input-bar.react.js
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | React.useEffect(() => { | ||||
userMentionsCandidates, | userMentionsCandidates, | ||||
props.inputState.setTypeaheadState, | props.inputState.setTypeaheadState, | ||||
props.inputState.typeaheadState.keepUpdatingThreadMembers, | props.inputState.typeaheadState.keepUpdatingThreadMembers, | ||||
chatMentionCandidates, | chatMentionCandidates, | ||||
]); | ]); | ||||
const suggestedUsers = useMentionTypeaheadUserSuggestions( | const suggestedUsers = useMentionTypeaheadUserSuggestions( | ||||
props.inputState.typeaheadState.frozenUserMentionsCandidates, | props.inputState.typeaheadState.frozenUserMentionsCandidates, | ||||
viewerID, | |||||
typeaheadMatchedStrings, | typeaheadMatchedStrings, | ||||
); | ); | ||||
const suggestedChats = useMentionTypeaheadChatSuggestions( | const suggestedChats = useMentionTypeaheadChatSuggestions( | ||||
chatMentionSearchIndex, | chatMentionSearchIndex, | ||||
props.inputState.typeaheadState.frozenChatMentionsCandidates, | props.inputState.typeaheadState.frozenChatMentionsCandidates, | ||||
typeaheadMatchedStrings, | typeaheadMatchedStrings, | ||||
); | ); | ||||
Show All 27 Lines |