forked from Hri7566/mpp-server-dev2
hidden user hotfix
This commit is contained in:
parent
abebbfbc33
commit
f4fb9cf83d
|
@ -271,7 +271,7 @@ class Channel extends EventEmitter {
|
||||||
if (cl) {
|
if (cl) {
|
||||||
if (c.hidden == true && c.user._id !== cl.user._id) {
|
if (c.hidden == true && c.user._id !== cl.user._id) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else if (c.user._id == cl.user._id) {
|
||||||
let u = {
|
let u = {
|
||||||
_id: c.user._id,
|
_id: c.user._id,
|
||||||
name: c.user.name + ' [HIDDEN]',
|
name: c.user.name + ' [HIDDEN]',
|
||||||
|
|
Loading…
Reference in New Issue