File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1200,8 +1200,9 @@ function navigateToConciergeChat() {
1200
1200
* @param {Array } policyMembers
1201
1201
*/
1202
1202
function addPolicyReport ( policyID , reportName , visibility , policyMembers ) {
1203
- // The participants include the current user (admin) and the employees. Participants must not be empty.
1204
- const participants = _ . unique ( [ currentUserAccountID , ...policyMembers ] ) ;
1203
+ // The participants include the current user (admin), and for restricted rooms, the policy members. Participants must not be empty.
1204
+ const members = visibility === CONST . REPORT . VISIBILITY . RESTRICTED ? policyMembers : [ ] ;
1205
+ const participants = _ . unique ( [ currentUserAccountID , ...members ] ) ;
1205
1206
const policyReport = ReportUtils . buildOptimisticChatReport (
1206
1207
participants ,
1207
1208
reportName ,
You can’t perform that action at this time.
0 commit comments