Skip to content

Commit 18c8f9a

Browse files
authored
Merge pull request #18656 from Prince-Mendiratta/feat/18472-split-message-participants
[IOU Split Bill] Use participants optimistically
2 parents 45c3212 + 2922cea commit 18c8f9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libs/ReportUtils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@ function buildOptimisticIOUReportAction(type, amount, currency, comment, partici
11421142
// IOUs of type split only exist in group DMs and those don't have an iouReport so we need to delete the IOUReportID key
11431143
if (type === CONST.IOU.REPORT_ACTION_TYPE.SPLIT) {
11441144
delete originalMessage.IOUReportID;
1145+
originalMessage.participants = [currentUserEmail, ..._.pluck(participants, 'login')];
11451146
}
11461147

11471148
return {

0 commit comments

Comments
 (0)