From 5b94b25f977e81b1418524fdd21e0925d5bd9150 Mon Sep 17 00:00:00 2001 From: Jack Nam Date: Wed, 18 Oct 2023 13:35:47 -0700 Subject: [PATCH] fix issue with new chat page --- src/pages/NewChatPage.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/pages/NewChatPage.js b/src/pages/NewChatPage.js index 37b8f0d30174..42b774179235 100755 --- a/src/pages/NewChatPage.js +++ b/src/pages/NewChatPage.js @@ -133,7 +133,7 @@ function NewChatPage({betas, isGroupChat, personalDetails, reports, translate, i recentReports, personalDetails: newChatPersonalDetails, userToInvite, - } = OptionsListUtils.getFilteredOptions(reports, personalDetails, betas, searchTerm, newSelectedOptions, excludedGroupEmails, false, true, false, {}, [], false, {}, [], true, true); + } = OptionsListUtils.getFilteredOptions(reports, personalDetails, betas, searchTerm, newSelectedOptions, excludedGroupEmails); setSelectedOptions(newSelectedOptions); setFilteredRecentReports(recentReports); @@ -168,7 +168,24 @@ function NewChatPage({betas, isGroupChat, personalDetails, reports, translate, i recentReports, personalDetails: newChatPersonalDetails, userToInvite, - } = OptionsListUtils.getFilteredOptions(reports, personalDetails, betas, searchTerm, selectedOptions, isGroupChat ? excludedGroupEmails : []); + } = OptionsListUtils.getFilteredOptions( + reports, + personalDetails, + betas, + searchTerm, + selectedOptions, + isGroupChat ? excludedGroupEmails : [], + false, + true, + false, + {}, + [], + false, + {}, + [], + true, + true, + ); setFilteredRecentReports(recentReports); setFilteredPersonalDetails(newChatPersonalDetails); setFilteredUserToInvite(userToInvite);