Skip to content

Commit

Permalink
Merge pull request #34011 from dukenv0307/fix/33073
Browse files Browse the repository at this point in the history
Display the message for last requests with foreign currency that are created in offline mode
  • Loading branch information
arosiclair authored Jan 24, 2024
2 parents e78c54e + e16d282 commit 60e72d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ function ReportActionItem(props) {
const iouReportID = originalMessage.IOUReportID ? originalMessage.IOUReportID.toString() : '0';
children = (
<MoneyRequestAction
chatReportID={props.report.reportID}
// If originalMessage.iouReportID is set, this is a 1:1 money request in a DM chat whose reportID is props.report.chatReportID
chatReportID={originalMessage.IOUReportID ? props.report.chatReportID : props.report.reportID}
requestReportID={iouReportID}
action={props.action}
isMostRecentIOUReportAction={props.isMostRecentIOUReportAction}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ function ReportActionsView(props) {
const didSubscribeToReportTypingEvents = useRef(false);
const isFirstRender = useRef(true);
const hasCachedActions = useInitialValue(() => _.size(props.reportActions) > 0);
const mostRecentIOUReportActionID = useInitialValue(() => ReportActionsUtils.getMostRecentIOURequestActionID(props.reportActions));

const mostRecentIOUReportActionID = useMemo(() => ReportActionsUtils.getMostRecentIOURequestActionID(props.reportActions), [props.reportActions]);
const prevNetworkRef = useRef(props.network);
const prevAuthTokenType = usePrevious(props.session.authTokenType);

Expand Down

0 comments on commit 60e72d0

Please sign in to comment.