diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-10-05 16:44:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 16:44:05 -0700 |
commit | bd7db8af26bfbf94a80972671ca714a143bee28e (patch) | |
tree | cf022bddc4f6b164bea51aeb3c57479d72b73355 /src/view/screens/SearchMobile.tsx | |
parent | 19f8389fc777c7ff41466748f1238f4e0a4b0619 (diff) | |
download | voidsky-bd7db8af26bfbf94a80972671ca714a143bee28e.tar.zst |
Improve typeahead search with inclusion of followed users (temporary solution) (#1612)
* Update follows cache to maintain some user info * Prioritize follows in composer autocomplete * Clean up logic and add new autocomplete to search * Update follow hook
Diffstat (limited to 'src/view/screens/SearchMobile.tsx')
-rw-r--r-- | src/view/screens/SearchMobile.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/view/screens/SearchMobile.tsx b/src/view/screens/SearchMobile.tsx index b545a643d..b80c1667f 100644 --- a/src/view/screens/SearchMobile.tsx +++ b/src/view/screens/SearchMobile.tsx @@ -148,18 +148,18 @@ export const SearchScreen = withAuthRequired( style={pal.view} onScroll={onMainScroll} scrollEventThrottle={100}> - {query && autocompleteView.searchRes.length ? ( + {query && autocompleteView.suggestions.length ? ( <> - {autocompleteView.searchRes.map((profile, index) => ( + {autocompleteView.suggestions.map((suggestion, index) => ( <ProfileCard - key={profile.did} - testID={`searchAutoCompleteResult-${profile.handle}`} - profile={profile} + key={suggestion.did} + testID={`searchAutoCompleteResult-${suggestion.handle}`} + profile={suggestion} noBorder={index === 0} /> ))} </> - ) : query && !autocompleteView.searchRes.length ? ( + ) : query && !autocompleteView.suggestions.length ? ( <View> <Text style={[pal.textLight, styles.searchPrompt]}> No results found for {autocompleteView.prefix} |