Skip to content

Commit

Permalink
Merge pull request #15545 from Expensify/Rory-FixQuickEditWithDeleted…
Browse files Browse the repository at this point in the history
…ActionsInTheWay
  • Loading branch information
roryabraham authored Mar 1, 2023
2 parents 44c19cb + 7407ac0 commit f97b385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function canEditReportAction(reportAction) {
return reportAction.actorEmail === sessionEmail
&& reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.ADDCOMMENT
&& !isReportMessageAttachment(lodashGet(reportAction, ['message', 0], {}))
&& !ReportActionsUtils.isDeletedAction(reportAction)
&& reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE;
}

Expand Down

0 comments on commit f97b385

Please sign in to comment.