Skip to content

Commit

Permalink
Merge pull request #19019 from 0xmiroslav/fix/19010-new-message-avatar
Browse files Browse the repository at this point in the history
prevent grouping created action message
  • Loading branch information
mountiny authored May 16, 2023
2 parents 07f1768 + 8a2b5f0 commit 579ed64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/ReportActionsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,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;
Expand Down

0 comments on commit 579ed64

Please sign in to comment.