Page MenuHomePhabricator

D6568.id22049.diff
No OneTemporary

D6568.id22049.diff

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

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)

Event Timeline