diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index f321c10c686e..7393af0c8f8e 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1520,7 +1520,8 @@ function createOptionList(personalDetails: OnyxEntry, repor .map(Number) .filter((accountID) => accountID !== currentUserAccountID || !isOneOnOneChat); - if (!accountIDs || accountIDs.length === 0) { + const isChatRoom = ReportUtils.isChatRoom(report); + if ((!accountIDs || accountIDs.length === 0) && !isChatRoom) { return; } @@ -1816,6 +1817,7 @@ function getOptions( const isMoneyRequestReport = option.isMoneyRequestReport; const isSelfDM = option.isSelfDM; const isOneOnOneChat = option.isOneOnOneChat; + const isChatRoom = option.isChatRoom; // For 1:1 chat, we don't want to include currentUser as participants in order to not mark 1:1 chats as having multiple participants const accountIDs = Object.keys(report.participants ?? {}) @@ -1852,7 +1854,7 @@ function getOptions( return; } - if (!accountIDs || accountIDs.length === 0) { + if ((!accountIDs || accountIDs.length === 0) && !isChatRoom) { return; }