From bbf85bbb5e6cdb26c4bdf6b4e4d32e906d8cbbf4 Mon Sep 17 00:00:00 2001 From: Jasper Huang Date: Tue, 11 Jan 2022 10:13:00 -0800 Subject: [PATCH] prevent policy rooms from appearing in the LHN --- src/libs/OptionsListUtils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 4c93c65b0d09..43f799ddb1e6 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -415,6 +415,10 @@ function getOptions(reports, personalDetails, activeReportID, { return; } + if (ReportUtils.isUserCreatedPolicyRoom(report) && !Permissions.canUsePolicyRooms(betas)) { + return; + } + const reportPersonalDetails = getPersonalDetailsForLogins(logins, personalDetails); // Save the report in the map if this is a single participant so we can associate the reportID with the