Skip to content

Commit 64aab89

Browse files
authored
Merge pull request #56927 from daledah/fix/56582
fix: error when open group chat with too long name
2 parents 4088726 + 1ee1426 commit 64aab89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libs/ReportUtils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,8 @@ function getGroupChatName(participants?: SelectedParticipant[], shouldApplyLimit
26122612
)
26132613
.sort((first, second) => localeCompare(first ?? '', second ?? ''))
26142614
.filter(Boolean)
2615-
.join(', ');
2615+
.join(', ')
2616+
.slice(0, CONST.REPORT_NAME_LIMIT);
26162617
}
26172618

26182619
return translateLocal('groupChat.defaultReportName', {displayName: getDisplayNameForParticipant({accountID: participantAccountIDs.at(0)})});

0 commit comments

Comments
 (0)