From c835d4611a268285c87205b11ca9fc038f2537bc Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sun, 10 Sep 2023 00:23:39 -0400 Subject: [PATCH] Remove participant ID from hi message --- src/channel/Channel.ts | 2 -- src/ws/events/user/handlers/hi.ts | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/channel/Channel.ts b/src/channel/Channel.ts index da5346c..6c11d9b 100644 --- a/src/channel/Channel.ts +++ b/src/channel/Channel.ts @@ -141,8 +141,6 @@ export class Channel { socket.currentChannelID = this.getID(); } - this.logger.debug("Participant list:", this.ppl); - // Send our data back socket.sendArray([ { diff --git a/src/ws/events/user/handlers/hi.ts b/src/ws/events/user/handlers/hi.ts index 8c18cc1..2e0e6d4 100644 --- a/src/ws/events/user/handlers/hi.ts +++ b/src/ws/events/user/handlers/hi.ts @@ -22,7 +22,11 @@ export const hi: ServerEventListener<"hi"> = { accountInfo: undefined, permissions: undefined, t: Date.now(), - u: part + u: { + _id: part._id, + color: part.color, + name: part.name + } } ]); }