add document projection

This commit is contained in:
Joao Siebel 2019-08-02 09:06:27 -03:00
parent d556661873
commit b06274c58a

View File

@ -78,12 +78,12 @@ export const startBandwidthMonitoring = () => {
const usersOnline = Users.find({
userId: { $ne: Auth.userID },
connectionStatus: 'online',
}).map(user => user.userId);
}, { fields: { userId: 1 } }).map(user => user.userId);
const usersWithViewWebcamsEnabled = LocalSettings.find({
meetingId: Auth.meetingID,
'settings.dataSaving.viewParticipantsWebcams': true,
}).map(user => user.userId);
}, { fields: { userId: 1 } }).map(user => user.userId);
const usersWatchingWebcams = usersOnline.filter(
user => usersWithViewWebcamsEnabled.includes(user),