From 44860e33487617edbabc1860f340fde086ec92c6 Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Tue, 16 May 2023 17:29:24 +0200 Subject: [PATCH] Merge pull request #19019 from 0xmiroslav/fix/19010-new-message-avatar prevent grouping created action message (cherry picked from commit 579ed64f71a942e5c17669481631a994e64b350f) --- src/libs/ReportActionsUtils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/ReportActionsUtils.js b/src/libs/ReportActionsUtils.js index 558afca9904e..3bd4b8ff84ce 100644 --- a/src/libs/ReportActionsUtils.js +++ b/src/libs/ReportActionsUtils.js @@ -144,6 +144,11 @@ function isConsecutiveActionMadeByPreviousActor(reportActions, actionIndex) { return false; } + // Do not group if previous action was a created action + if (previousAction.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) { + return false; + } + // Do not group if previous or current action was a renamed action if (previousAction.actionName === CONST.REPORT.ACTIONS.TYPE.RENAMED || currentAction.actionName === CONST.REPORT.ACTIONS.TYPE.RENAMED) { return false;