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

(cherry picked from commit 579ed64)
  • Loading branch information
mountiny authored and OSBotify committed May 16, 2023
1 parent 728dc6e commit 44860e3
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 @@ -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;
Expand Down

0 comments on commit 44860e3

Please sign in to comment.