diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js --- a/native/chat/chat-input-bar.react.js +++ b/native/chat/chat-input-bar.react.js @@ -28,7 +28,12 @@ newThreadActionTypes, } from 'lib/actions/thread-actions'; import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors'; +import { + relativeMemberInfoSelectorForMembersOfThread, + userStoreSearchIndex, +} from 'lib/selectors/user-selectors'; import { localIDPrefix, trimMessage } from 'lib/shared/message-utils'; +import SearchIndex from 'lib/shared/search-index'; import { threadHasPermission, viewerIsMember, @@ -49,6 +54,7 @@ type ClientThreadJoinRequest, type ThreadJoinPayload, } from 'lib/types/thread-types'; +import type { RelativeMemberInfo } from 'lib/types/thread-types'; import { type UserInfos } from 'lib/types/user-types'; import { type DispatchActionPromise, @@ -135,6 +141,8 @@ +joinThread: (request: ClientThreadJoinRequest) => Promise, // withInputState +inputState: ?InputState, + +userSearchIndex: SearchIndex, + +threadMembers: $ReadOnlyArray, }; type State = { +text: string, @@ -867,6 +875,11 @@ const dispatchActionPromise = useDispatchActionPromise(); const callJoinThread = useServerCall(joinThread); + const userSearchIndex = useSelector(userStoreSearchIndex); + const threadMembers = useSelector( + relativeMemberInfoSelectorForMembersOfThread(props.threadInfo.id), + ); + return ( ); }