From 7407ac0e299411fb64fd9ea193280d1fae131a72 Mon Sep 17 00:00:00 2001 From: rory Date: Mon, 27 Feb 2023 18:27:35 -0800 Subject: [PATCH] Make canEditReportAction return false for deleted actions --- src/libs/ReportUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 4c03e35b642c..249d103b720f 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -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; }