From 0a8871839b7fee92e605e0db8f45968a423b959d Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 22 May 2024 22:52:47 +0800 Subject: [PATCH 1/2] only set the report if it's a 1:1 chat --- src/libs/OptionsListUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index 544ced533e8..2f3949bbcae 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1504,7 +1504,7 @@ function createOptionList(personalDetails: OnyxEntry, repor // Save the report in the map if this is a single participant so we can associate the reportID with the // personal detail option later. Individuals should not be associated with single participant // policyExpenseChats or chatRooms since those are not people. - if (accountIDs.length <= 1) { + if (accountIDs.length <= 1 && ReportUtils.isOneOnOneChat(report)) { reportMapForAccountIDs[accountIDs[0]] = report; } From ef57f2a3ec7532410ed2ca0d8ce596da050dc324 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 22 May 2024 22:53:14 +0800 Subject: [PATCH 2/2] use existing variable --- src/libs/OptionsListUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index 2f3949bbcae..a2a8587cec8 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1504,7 +1504,7 @@ function createOptionList(personalDetails: OnyxEntry, repor // Save the report in the map if this is a single participant so we can associate the reportID with the // personal detail option later. Individuals should not be associated with single participant // policyExpenseChats or chatRooms since those are not people. - if (accountIDs.length <= 1 && ReportUtils.isOneOnOneChat(report)) { + if (accountIDs.length <= 1 && isOneOnOneChat) { reportMapForAccountIDs[accountIDs[0]] = report; }