Skip to content

Commit

Permalink
Merge pull request #21357 from fedirjh/Fix-OptionListUtils
Browse files Browse the repository at this point in the history
[Fix] OptionListUtils.getOptions is filtering workspaces chats
  • Loading branch information
AndrewGable authored Jun 26, 2023
2 parents c261901 + af27f77 commit 3a45fcb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,7 @@ function getOptions(
const searchValue = parsedPhoneNumber.possible ? parsedPhoneNumber.number.e164 : searchInputValue;

// Filter out all the reports that shouldn't be displayed
const filteredReports = _.filter(reports, (report) =>
ReportUtils.shouldReportBeInOptionList(report, Navigation.getReportIDFromRoute(), false, currentUserLogin, iouReports, betas, policies),
);
const filteredReports = _.filter(reports, (report) => ReportUtils.shouldReportBeInOptionList(report, Navigation.getReportIDFromRoute(), false, iouReports, betas, policies));

// Sorting the reports works like this:
// - Order everything by the last message timestamp (descending)
Expand Down

0 comments on commit 3a45fcb

Please sign in to comment.