Skip to content

Commit

Permalink
prevent policy rooms from appearing in the LHN
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperhuangg committed Jan 11, 2022
1 parent 50ebc74 commit bbf85bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbf85bb

Please sign in to comment.