Skip to content

Commit a1868c8

Browse files
authored
Merge pull request #42036 from nkdengineer/fix/41832
Fix member option appear in transaction thread report detail page
2 parents 322d6fe + 0843cb6 commit a1868c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libs/ReportUtils.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -3624,8 +3624,8 @@ function buildOptimisticIOUReport(payeeAccountID: number, payerAccountID: number
36243624
const payerEmail = 'login' in personalDetails ? personalDetails.login : '';
36253625

36263626
const participants: Participants = {
3627-
[payeeAccountID]: {hidden: false},
3628-
[payerAccountID]: {hidden: false},
3627+
[payeeAccountID]: {hidden: true},
3628+
[payerAccountID]: {hidden: true},
36293629
};
36303630

36313631
return {
@@ -4338,10 +4338,11 @@ function buildOptimisticChatReport(
43384338
description = '',
43394339
avatarUrl = '',
43404340
optimisticReportID = '',
4341+
shouldShowParticipants = true,
43414342
): OptimisticChatReport {
43424343
const participants = participantList.reduce((reportParticipants: Participants, accountID: number) => {
43434344
const participant: ReportParticipant = {
4344-
hidden: false,
4345+
hidden: !shouldShowParticipants,
43454346
role: accountID === currentUserAccountID ? CONST.REPORT.ROLE.ADMIN : CONST.REPORT.ROLE.MEMBER,
43464347
};
43474348
// eslint-disable-next-line no-param-reassign
@@ -4890,6 +4891,8 @@ function buildTransactionThread(
48904891
moneyRequestReport?.reportID,
48914892
'',
48924893
'',
4894+
'',
4895+
false,
48934896
);
48944897
}
48954898

0 commit comments

Comments
 (0)