Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3490874
D6568.id22049.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6568.id22049.diff
View Options
diff --git a/lib/selectors/nav-selectors.js b/lib/selectors/nav-selectors.js
--- a/lib/selectors/nav-selectors.js
+++ b/lib/selectors/nav-selectors.js
@@ -124,15 +124,21 @@
if (member.id === viewerID) {
continue;
}
- const userInfo = memberMap.get(member.id);
- if (userInfo?.username) {
- searchTextArray.push(userInfo.username);
+ const userInfo = userInfos[member.id];
+ const rawUsername = userInfo?.username;
+ if (rawUsername) {
+ searchTextArray.push(rawUsername);
+ }
+ const resolvedUserInfo = memberMap.get(member.id);
+ const username = resolvedUserInfo?.username;
+ if (username && username !== rawUsername) {
+ searchTextArray.push(username);
}
}
searchIndex.addEntry(threadInfo.id, searchTextArray.join(' '));
}
return searchIndex;
- }, [threadInfos, viewerID, memberMap]);
+ }, [threadInfos, viewerID, userInfos, memberMap]);
}
function useGlobalThreadSearchIndex(): SearchIndex {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 5:41 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677721
Default Alt Text
D6568.id22049.diff (1 KB)
Attached To
Mode
D6568: [lib] Allow searching for users by ETH address
Attached
Detach File
Event Timeline
Log In to Comment