Merge pull request #10857 from mariogasparoni/v2.2.x-release

Filter 'name' field in user's search
This commit is contained in:
Anton Georgiev 2020-11-18 09:09:20 -05:00 committed by GitHub
commit 0b34c4fa81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ export default withTracker(() => {
callerName, talking, color, voiceUserId, muted, intId,
} = usersTalking[i];
const user = Users.findOne({ userId: voiceUserId });
const user = Users.findOne({ userId: voiceUserId }, { fields: { name: 1 } });
const _name = user ? user.name : 'USER';