summary refs log tree commit diff
path: root/gateway/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 18:56:46 +0200
committerGitHub <noreply@github.com>2021-10-10 18:56:46 +0200
commite7f80c4af4647c996420d23df0d20285f6a40ee2 (patch)
tree61a34fb4d1e9b6b592d5af3b21424b17d1d955ca /gateway/src
parentMerge branch 'remove-vanity-url' of https://github.com/thearcanebrony/fosscor... (diff)
parent:art: update migration script (diff)
downloadserver-e7f80c4af4647c996420d23df0d20285f6a40ee2.tar.xz
Merge branch 'master' into remove-vanity-url
Diffstat (limited to 'gateway/src')
-rw-r--r--gateway/src/opcodes/Identify.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts

index 4470857f..673dde9d 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts
@@ -94,9 +94,7 @@ 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?.map((x) => x.user) as User[] - ); + users = users.concat(x.channel.recipients as unknown as User[]); if (x.channel.isDm()) { x.channel.recipients = x.channel.recipients!.filter( (x) => x.id !== this.user_id