Page MenuHomePhabricator

D9297.diff
No OneTemporary

D9297.diff

diff --git a/lib/hooks/search-threads.js b/lib/hooks/search-threads.js
--- a/lib/hooks/search-threads.js
+++ b/lib/hooks/search-threads.js
@@ -102,10 +102,12 @@
function useSearchSubchannels(
threadInfo: ThreadInfo,
): SearchThreadsResult<ChatThreadItem> {
- const childThreadInfos = useFilteredChatListData(
+ const filterFunc = React.useCallback(
(thread: ?(ThreadInfo | RawThreadInfo)) =>
threadIsChannel(thread) && thread?.parentThreadID === threadInfo.id,
+ [threadInfo.id],
);
+ const childThreadInfos = useFilteredChatListData(filterFunc);
return useSearchThreads(threadInfo, childThreadInfos);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 3:29 AM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2548606
Default Alt Text
D9297.diff (637 B)

Event Timeline