Skip to content

Commit fb0c6a9

Browse files
authored
Merge pull request Expensify#68663 from mkzie2/mkzie2-issue/67215
fix: the tag name is not cleaned in the system message thread header
2 parents 08f6257 + 3da3ddb commit fb0c6a9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ import {
117117
arePaymentsEnabled,
118118
canSendInvoiceFromWorkspace,
119119
getActivePolicies,
120+
getCleanedTagName,
120121
getForwardsToAccount,
121122
getManagerAccountEmail,
122123
getManagerAccountID,
@@ -173,6 +174,7 @@ import {
173174
getWorkspaceReportFieldAddMessage,
174175
getWorkspaceReportFieldDeleteMessage,
175176
getWorkspaceReportFieldUpdateMessage,
177+
getWorkspaceTagUpdateMessage,
176178
getWorkspaceUpdateFieldMessage,
177179
isActionableJoinRequest,
178180
isActionableJoinRequestPending,
@@ -205,6 +207,7 @@ import {
205207
isRoomChangeLogAction,
206208
isSentMoneyReportAction,
207209
isSplitBillAction as isSplitBillReportAction,
210+
isTagModificationAction,
208211
isThreadParentMessage,
209212
isTrackExpenseAction,
210213
isTransactionThread,
@@ -5254,6 +5257,10 @@ function getReportNameInternal({
52545257
return getPolicyChangeMessage(parentReportAction);
52555258
}
52565259

5260+
if (parentReportAction?.actionName && isTagModificationAction(parentReportAction?.actionName)) {
5261+
return getCleanedTagName(getWorkspaceTagUpdateMessage(parentReportAction) ?? '');
5262+
}
5263+
52575264
if (isMovedAction(parentReportAction)) {
52585265
return getMovedActionMessage(parentReportAction, parentReport);
52595266
}

0 commit comments

Comments
 (0)