Skip to content

Commit

Permalink
Merge pull request #28247 from tienifr/fix/27862
Browse files Browse the repository at this point in the history
fix: 27862 Web - Deleting a manual request in the IOU room that still has a scan request redirects the user to the main chat
  • Loading branch information
youssef-lr authored Oct 3, 2023
2 parents b29d682 + 3b58e09 commit bce52ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/ReportActionsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ function shouldReportActionBeVisibleAsLastAction(reportAction) {

// If a whisper action is the REPORTPREVIEW action, we are displaying it.
return (
shouldReportActionBeVisible(reportAction, reportAction.reportActionID) && !(isWhisperAction(reportAction) && !isReportPreviewAction(reportAction)) && !isDeletedAction(reportAction)
shouldReportActionBeVisible(reportAction, reportAction.reportActionID) &&
!(isWhisperAction(reportAction) && !isReportPreviewAction(reportAction) && !isMoneyRequestAction(reportAction)) &&
!isDeletedAction(reportAction)
);
}

Expand Down

0 comments on commit bce52ba

Please sign in to comment.