Skip to content

Commit

Permalink
Merge pull request #18656 from Prince-Mendiratta/feat/18472-split-mes…
Browse files Browse the repository at this point in the history
…sage-participants

[IOU Split Bill] Use participants optimistically
  • Loading branch information
Julesssss authored May 10, 2023
2 parents 45c3212 + 2922cea commit 18c8f9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,7 @@ function buildOptimisticIOUReportAction(type, amount, currency, comment, partici
// IOUs of type split only exist in group DMs and those don't have an iouReport so we need to delete the IOUReportID key
if (type === CONST.IOU.REPORT_ACTION_TYPE.SPLIT) {
delete originalMessage.IOUReportID;
originalMessage.participants = [currentUserEmail, ..._.pluck(participants, 'login')];
}

return {
Expand Down

0 comments on commit 18c8f9a

Please sign in to comment.