@@ -11,6 +11,7 @@ import SelectCircle from '@components/SelectCircle';
1111import SelectionList from '@components/SelectionList' ;
1212import type { ListItem , SelectionListHandle } from '@components/SelectionList/types' ;
1313import UserListItem from '@components/SelectionList/UserListItem' ;
14+ import useContactImport from '@hooks/useContactImport' ;
1415import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails' ;
1516import useDebouncedState from '@hooks/useDebouncedState' ;
1617import useDismissedReferralBanners from '@hooks/useDismissedReferralBanners' ;
@@ -21,7 +22,6 @@ import useSafeAreaInsets from '@hooks/useSafeAreaInsets';
2122import useScreenWrapperTransitionStatus from '@hooks/useScreenWrapperTransitionStatus' ;
2223import useThemeStyles from '@hooks/useThemeStyles' ;
2324import { navigateToAndOpenReport , searchInServer , setGroupDraft } from '@libs/actions/Report' ;
24- import useContactsImporter from '@libs/ContactPermission/useContactsImporter' ;
2525import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
2626import Log from '@libs/Log' ;
2727import memoize from '@libs/memoize' ;
@@ -61,7 +61,7 @@ function useOptions() {
6161 const [ newGroupDraft ] = useOnyx ( ONYXKEYS . NEW_GROUP_CHAT_DRAFT , { canBeMissing : true } ) ;
6262 const personalData = useCurrentUserPersonalDetails ( ) ;
6363 const { didScreenTransitionEnd} = useScreenWrapperTransitionStatus ( ) ;
64- const { contacts} = useContactsImporter ( ) ;
64+ const { contacts} = useContactImport ( ) ;
6565 const { options : listOptions , areOptionsInitialized} = useOptionsList ( {
6666 shouldInitialize : didScreenTransitionEnd ,
6767 } ) ;
@@ -78,9 +78,9 @@ function useOptions() {
7878 } ,
7979 ) ;
8080 return filteredOptions ;
81- } , [ betas , listOptions . personalDetails , listOptions . reports ] ) ;
81+ } , [ betas , listOptions . personalDetails , listOptions . reports , contacts ] ) ;
8282
83- const unselectedOptions = useMemo ( ( ) => filterSelectedOptions ( defaultOptions , new Set ( selectedOptions . map ( ( { accountID} ) => accountID ) ) ) , [ defaultOptions , selectedOptions , contacts ] ) ;
83+ const unselectedOptions = useMemo ( ( ) => filterSelectedOptions ( defaultOptions , new Set ( selectedOptions . map ( ( { accountID} ) => accountID ) ) ) , [ defaultOptions , selectedOptions ] ) ;
8484
8585 const options = useMemo ( ( ) => {
8686 const filteredOptions = filterAndOrderOptions ( unselectedOptions , debouncedSearchTerm , {
0 commit comments