diff --git a/src/CONST.ts b/src/CONST.ts index ed4de999c78c..98950b18fc19 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -974,6 +974,7 @@ const CONST = { SEARCH_OPTION_LIST_DEBOUNCE_TIME: 300, RESIZE_DEBOUNCE_TIME: 100, UNREAD_UPDATE_DEBOUNCE_TIME: 300, + SEARCH_FILTER_OPTIONS: 'search_filter_options', }, PRIORITY_MODE: { GSD: 'gsd', diff --git a/src/pages/ChatFinderPage/index.tsx b/src/pages/ChatFinderPage/index.tsx index 20e7c7471218..65323741edd2 100644 --- a/src/pages/ChatFinderPage/index.tsx +++ b/src/pages/ChatFinderPage/index.tsx @@ -103,7 +103,10 @@ function ChatFinderPage({betas, isSearchingForReports, navigation}: ChatFinderPa }; } + Timing.start(CONST.TIMING.SEARCH_FILTER_OPTIONS); const newOptions = OptionsListUtils.filterOptions(searchOptions, debouncedSearchValue, {sortByReportTypeInSearch: true, betas, preferChatroomsOverThreads: true}); + Timing.end(CONST.TIMING.SEARCH_FILTER_OPTIONS); + const header = OptionsListUtils.getHeaderMessage(newOptions.recentReports.length + Number(!!newOptions.userToInvite) > 0, false, debouncedSearchValue); return { recentReports: newOptions.recentReports,