Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3332625
D9215.id31161.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.id31161.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
Fri, Nov 22, 12:29 AM (12 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2558217
Default Alt Text
D9215.id31161.diff (1 KB)
Attached To
Mode
D9215: [native] Remove `boundChatListData` from `useThreadListSearch` dep list
Attached
Detach File
Event Timeline
Log In to Comment