Skip to content

Commit

Permalink
Merge pull request #40939 from Expensify/rodrigo-fix-group-member-count
Browse files Browse the repository at this point in the history
Fixes member count in group chat when creating it
  • Loading branch information
luacmartins authored Apr 25, 2024
2 parents 0cb29df + 70e3862 commit 6acc903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ function openReport(
if (ReportUtils.isGroupChat(newReportObject)) {
parameters.chatType = CONST.REPORT.CHAT_TYPE.GROUP;
parameters.groupChatAdminLogins = currentUserEmail;
parameters.optimisticAccountIDList = participantAccountIDList.join(',');
parameters.optimisticAccountIDList = Object.keys(newReportObject.participants ?? []).join(',');
parameters.reportName = newReportObject.reportName ?? '';

// If we have an avatar then include it with the parameters
Expand Down

0 comments on commit 6acc903

Please sign in to comment.