Page MenuHomePhabricator

D9215.id31161.diff
No OneTemporary

D9215.id31161.diff

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

Mime Type
text/plain
Expires
Fri, Nov 22, 12:29 AM (16 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2558217
Default Alt Text
D9215.id31161.diff (1 KB)

Event Timeline