Skip to content

Commit 9bec0c0

Browse files
committed
fix: the tag name is not cleaned in the system message thread header
1 parent 94b08f6 commit 9bec0c0

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,
@@ -172,6 +173,7 @@ import {
172173
getWorkspaceReportFieldAddMessage,
173174
getWorkspaceReportFieldDeleteMessage,
174175
getWorkspaceReportFieldUpdateMessage,
176+
getWorkspaceTagUpdateMessage,
175177
getWorkspaceUpdateFieldMessage,
176178
isActionableJoinRequest,
177179
isActionableJoinRequestPending,
@@ -203,6 +205,7 @@ import {
203205
isRoomChangeLogAction,
204206
isSentMoneyReportAction,
205207
isSplitBillAction as isSplitBillReportAction,
208+
isTagModificationAction,
206209
isThreadParentMessage,
207210
isTrackExpenseAction,
208211
isTransactionThread,
@@ -5223,6 +5226,10 @@ function getReportNameInternal({
52235226
return getPolicyChangeMessage(parentReportAction);
52245227
}
52255228

5229+
if (parentReportAction?.actionName && isTagModificationAction(parentReportAction?.actionName)) {
5230+
return getCleanedTagName(getWorkspaceTagUpdateMessage(parentReportAction) ?? '');
5231+
}
5232+
52265233
if (isMoneyRequestAction(parentReportAction)) {
52275234
const originalMessage = getOriginalMessage(parentReportAction);
52285235
const reportPolicy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`];

0 commit comments

Comments
 (0)