use profile-only recents in native search list

This commit is contained in:
vineyardbovines
2026-07-15 15:45:14 -04:00
parent eb01ad6e47
commit 81f7e66ab3
+2 -2
View File
@@ -127,7 +127,7 @@ export function SearchScreenShell({
setSearchText(text) setSearchText(text)
}, []) }, [])
const recents = useRecentSearchesSource() const recents = useRecentSearchesSource({profilesOnly: true})
const {items: autocompleteItems, isFetching: isAutocompleteFetching} = const {items: autocompleteItems, isFetching: isAutocompleteFetching} =
useAutocomplete({ useAutocomplete({
@@ -138,7 +138,7 @@ export function SearchScreenShell({
* query on web to keep the hook a no-op instead of doing wasted work. * query on web to keep the hook a no-op instead of doing wasted work.
*/ */
query: IS_NATIVE ? searchText : '', query: IS_NATIVE ? searchText : '',
sources: [recents], sources: IS_NATIVE ? [recents] : undefined,
}) })
const [showAutocomplete, setShowAutocomplete] = useState(false) const [showAutocomplete, setShowAutocomplete] = useState(false)