Merge pull request #20639 from ramonlsouza/issue-20569
fix: Layout VIDEO_FOCUS shows empty tiles for other participants when see other viewers is locked
This commit is contained in:
commit
9539ad09c0
@ -454,8 +454,16 @@ class VideoService {
|
||||
let users = [];
|
||||
|
||||
if (isGridEnabled) {
|
||||
const selector = {
|
||||
meetingId: Auth.meetingID,
|
||||
};
|
||||
|
||||
if (this.hideUserlist() && this.getMyRole() === ROLE_VIEWER) {
|
||||
selector.role = { $ne: ROLE_VIEWER };
|
||||
}
|
||||
|
||||
users = Users.find(
|
||||
{ meetingId: Auth.meetingID },
|
||||
selector,
|
||||
{ fields: { loggedOut: 1, left: 1, ...neededDataTypes} },
|
||||
).fetch();
|
||||
}
|
||||
@ -633,6 +641,12 @@ class VideoService {
|
||||
return false;
|
||||
}
|
||||
|
||||
hideUserlist() {
|
||||
const meeting = Meetings.findOne({ meetingId: Auth.meetingID },
|
||||
{ fields: { 'lockSettingsProps.hideUserList': 1 } });
|
||||
return meeting.lockSettingsProps ? meeting.lockSettingsProps.hideUserList : false;
|
||||
}
|
||||
|
||||
hasCapReached() {
|
||||
const meeting = Meetings.findOne(
|
||||
{ meetingId: Auth.meetingID },
|
||||
|
Loading…
Reference in New Issue
Block a user