summary refs log tree commit diff
path: root/gateway/src/opcodes/Identify.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 14:18:53 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 14:18:53 +0200
commit404d9e40d1bfb05a8670c0f0879e19d935a228c6 (patch)
treee8a7f41274989d0046cf69c90092556ad8aceb7b /gateway/src/opcodes/Identify.ts
parent:see_no_evil: remove console.log (diff)
downloadserver-404d9e40d1bfb05a8670c0f0879e19d935a228c6.tar.xz
:bug: fix Identify ready payload missing users
Diffstat (limited to 'gateway/src/opcodes/Identify.ts')
-rw-r--r--gateway/src/opcodes/Identify.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts
index 5d5b72d1..16ea1904 100644
--- a/gateway/src/opcodes/Identify.ts
+++ b/gateway/src/opcodes/Identify.ts
@@ -93,7 +93,9 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 		// @ts-ignore
 		x.channel.recipients = x.channel.recipients?.map((x) => x.user);
 		//TODO is this needed? check if users in group dm that are not friends are sent in the READY event
-		//users = users.concat(x.channel.recipients);
+		users = users.concat(
+			x.channel.recipients?.map((x) => x.user) as User[]
+		);
 		if (x.channel.isDm()) {
 			x.channel.recipients = x.channel.recipients!.filter(
 				(x) => x.id !== this.user_id