diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index b8e4c448fdc2..d9b8f92663de 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -3596,8 +3596,8 @@ function buildOptimisticIOUReport(payeeAccountID: number, payerAccountID: number const payerEmail = 'login' in personalDetails ? personalDetails.login : ''; const participants: Participants = { - [payeeAccountID]: {hidden: false}, - [payerAccountID]: {hidden: false}, + [payeeAccountID]: {hidden: true}, + [payerAccountID]: {hidden: true}, }; return { @@ -4310,10 +4310,11 @@ function buildOptimisticChatReport( description = '', avatarUrl = '', optimisticReportID = '', + shouldShowParticipants = true, ): OptimisticChatReport { const participants = participantList.reduce((reportParticipants: Participants, accountID: number) => { const participant: ReportParticipant = { - hidden: false, + hidden: !shouldShowParticipants, role: accountID === currentUserAccountID ? CONST.REPORT.ROLE.ADMIN : CONST.REPORT.ROLE.MEMBER, }; // eslint-disable-next-line no-param-reassign @@ -4862,6 +4863,8 @@ function buildTransactionThread( moneyRequestReport?.reportID, '', '', + '', + false, ); }