Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3359281
D9215.id31218.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
D9215.id31218.diff
View Options
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -1379,7 +1379,6 @@
+usersSearchResults: $ReadOnlyArray<GlobalAccountUserInfo>,
};
function useThreadListSearch(
- chatListData: $ReadOnlyArray<ChatThreadItem>,
searchText: string,
viewerID: ?string,
): ThreadListSearchResult {
@@ -1411,7 +1410,7 @@
const usersResults = await searchUsers(searchText);
setUsersSearchResults(usersResults);
})();
- }, [searchText, chatListData, threadSearchIndex, searchUsers]);
+ }, [searchText, threadSearchIndex, searchUsers]);
return { threadSearchResults, usersSearchResults };
}
diff --git a/native/chat/chat-thread-list.react.js b/native/chat/chat-thread-list.react.js
--- a/native/chat/chat-thread-list.react.js
+++ b/native/chat/chat-thread-list.react.js
@@ -86,7 +86,6 @@
React.useState<SearchStatus>('inactive');
const { threadSearchResults, usersSearchResults } = useThreadListSearch(
- boundChatListData,
searchText,
loggedInUserInfo?.id,
);
diff --git a/web/chat/thread-list-provider.js b/web/chat/thread-list-provider.js
--- a/web/chat/thread-list-provider.js
+++ b/web/chat/thread-list-provider.js
@@ -174,7 +174,6 @@
const viewerID = loggedInUserInfo?.id;
const { threadSearchResults, usersSearchResults } = useThreadListSearch(
- chatListData,
searchText,
viewerID,
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 8:23 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578663
Default Alt Text
D9215.id31218.diff (1 KB)
Attached To
Mode
D9215: [native] Remove `boundChatListData` from `useThreadListSearch` dep list
Attached
Detach File
Event Timeline
Log In to Comment