Skip to content

Commit

Permalink
Merge pull request #43162 from tienifr/fix/41211
Browse files Browse the repository at this point in the history
fix If we alter transaction details, new message green line disappears
  • Loading branch information
srikarparsi authored Jul 9, 2024
2 parents 15e67a0 + c7fc9ab commit 7b558ef
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2556,6 +2556,22 @@ function getUpdateMoneyRequestParams(
[updatedReportAction.reportActionID]: updatedReportAction as OnyxTypes.ReportAction,
},
});
optimisticData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${transactionThread?.reportID}`,
value: {
lastVisibleActionCreated: updatedReportAction.created,
lastReadTime: updatedReportAction.created,
},
});
failureData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${transactionThread?.reportID}`,
value: {
lastVisibleActionCreated: transactionThread?.lastVisibleActionCreated,
lastReadTime: transactionThread?.lastReadTime,
},
});
successData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread?.reportID}`,
Expand Down

0 comments on commit 7b558ef

Please sign in to comment.