We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e99f08 + bd04b65 commit ce695b6Copy full SHA for ce695b6
src/libs/ReportUtils.ts
@@ -2241,7 +2241,16 @@ function isOneOnOneChat(report: OnyxEntry<Report>): boolean {
2241
if (participantAmount !== 1) {
2242
return false;
2243
}
2244
- return !isChatRoom(report) && !isExpenseRequest(report) && !isMoneyRequestReport(report) && !isPolicyExpenseChat(report) && !isTaskReport(report) && isDM(report) && !isIOUReport(report);
+ return (
2245
+ (report?.policyID === CONST.POLICY.ID_FAKE || !report?.policyID) &&
2246
+ !isChatRoom(report) &&
2247
+ !isExpenseRequest(report) &&
2248
+ !isMoneyRequestReport(report) &&
2249
+ !isPolicyExpenseChat(report) &&
2250
+ !isTaskReport(report) &&
2251
+ isDM(report) &&
2252
+ !isIOUReport(report)
2253
+ );
2254
2255
2256
/**
0 commit comments