Skip to content

Commit

Permalink
Merge pull request #18717 from Expensify/vit-fixMultiplePolicyExpense…
Browse files Browse the repository at this point in the history
…Cahts

Make sure when admin request from its workspace the participants are correctly listed
  • Loading branch information
luacmartins authored May 11, 2023
2 parents 2fca384 + 9a87923 commit 1d951e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ function getPolicyExpenseReportOptions(report) {
if (!ReportUtils.isPolicyExpenseChat(report)) {
return [];
}
const filteredPolicyExpenseReports = _.filter(policyExpenseReports, (policyExpenseReport) => policyExpenseReport.policyID === report.policyID);
const filteredPolicyExpenseReports = _.filter(
policyExpenseReports,
(policyExpenseReport) => policyExpenseReport.policyID === report.policyID && policyExpenseReport.isOwnPolicyExpenseChat,
);
return _.map(filteredPolicyExpenseReports, (expenseReport) => {
const policyExpenseChatAvatarSource = ReportUtils.getWorkspaceAvatar(expenseReport);
return {
Expand Down

0 comments on commit 1d951e6

Please sign in to comment.