From ebe26d4f4cbc3d2ffc048ca027cf90628ed09d1b Mon Sep 17 00:00:00 2001 From: Hans Date: Sun, 16 Jul 2023 03:26:58 +0700 Subject: [PATCH] fix Inconsistent behavior on deleting message that have reply/thread --- src/libs/ReportActionsUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.js b/src/libs/ReportActionsUtils.js index d34c918a0f2d..80df0a70c1e6 100644 --- a/src/libs/ReportActionsUtils.js +++ b/src/libs/ReportActionsUtils.js @@ -531,7 +531,7 @@ function isCreatedTaskReportAction(reportAction) { * @returns {Boolean} */ function isMessageDeleted(reportAction) { - return lodashGet(reportAction, 'originalMessage.isDeletedParentAction', false); + return lodashGet(reportAction, ['message', 0, 'isDeletedParentAction'], false); } function isWhisperAction(action) {