Skip to content

Commit

Permalink
Merge pull request #28980 from rojiphil/27948-lhn-update-oftaskparent
Browse files Browse the repository at this point in the history
last message fetch using optimistic actions
  • Loading branch information
Hayata Suenaga authored Oct 6, 2023
2 parents 44033e1 + 9945d3c commit a6d2f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ function cancelTask(taskReportID, taskTitle, originalStateNum, originalStatusNum
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${parentReport.reportID}`,
value: {
lastMessageText: ReportActionsUtils.getLastVisibleMessage(parentReport.reportID, {[parentReportAction.reportActionID]: null}).lastMessageText,
lastVisibleActionCreated: ReportActionsUtils.getLastVisibleAction(parentReport.reportID, {[parentReportAction.reportActionID]: null}).created,
lastMessageText: ReportActionsUtils.getLastVisibleMessage(parentReport.reportID, optimisticReportActions).lastMessageText,
lastVisibleActionCreated: ReportActionsUtils.getLastVisibleAction(parentReport.reportID, optimisticReportActions).created,
},
},
{
Expand Down

0 comments on commit a6d2f3e

Please sign in to comment.