hidden user

This commit is contained in:
Hri7566 2022-06-18 00:43:33 -04:00
parent b39ba89d44
commit a006206e2e
1 changed files with 13 additions and 0 deletions

View File

@ -268,6 +268,19 @@ class Channel extends EventEmitter {
let chppl = [];
[...this.ppl.values()].forEach(c => {
if (cl) {
if (c.hidden == true && c.user._id !== cl.user._id) {
return;
} else {
let u = {
_id: c.user._id,
name: c.user.name + ' [HIDDEN]',
color: c.user.color,
id: c.participantId
}
chppl.push(u);
}
}
let u = {
_id: c.user._id,
name: c.user.name,