Changeset View
Changeset View
Standalone View
Standalone View
native/chat/settings/add-users-modal.react.js
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | function AddUsersModal(props: Props): React.Node { | ||||
const parentThreadInfo = useSelector(state => | const parentThreadInfo = useSelector(state => | ||||
parentThreadID ? threadInfoSelector(state)[parentThreadID] : null, | parentThreadID ? threadInfoSelector(state)[parentThreadID] : null, | ||||
); | ); | ||||
const communityThreadInfo = useSelector(state => | const communityThreadInfo = useSelector(state => | ||||
community ? threadInfoSelector(state)[community] : null, | community ? threadInfoSelector(state)[community] : null, | ||||
); | ); | ||||
const userSearchResults = React.useMemo( | const userSearchResults = React.useMemo( | ||||
() => | () => | ||||
getPotentialMemberItems( | getPotentialMemberItems({ | ||||
usernameInputText, | text: usernameInputText, | ||||
otherUserInfos, | userInfos: otherUserInfos, | ||||
userSearchIndex, | searchIndex: userSearchIndex, | ||||
excludeUserIDs, | excludeUserIDs, | ||||
parentThreadInfo, | inputParentThreadInfo: parentThreadInfo, | ||||
communityThreadInfo, | inputCommunityThreadInfo: communityThreadInfo, | ||||
threadInfo.type, | threadType: threadInfo.type, | ||||
), | }), | ||||
[ | [ | ||||
usernameInputText, | usernameInputText, | ||||
otherUserInfos, | otherUserInfos, | ||||
userSearchIndex, | userSearchIndex, | ||||
excludeUserIDs, | excludeUserIDs, | ||||
parentThreadInfo, | parentThreadInfo, | ||||
communityThreadInfo, | communityThreadInfo, | ||||
threadInfo.type, | threadInfo.type, | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |