Dont send sessions replace or presence update for unidentified users
This commit is contained in:
parent
6122374e4d
commit
3bbf997295
@ -18,6 +18,9 @@ export async function Close(this: WebSocket, code: number, reason: string) {
|
||||
|
||||
if (this.session_id) {
|
||||
await Session.delete({ session_id: this.session_id });
|
||||
}
|
||||
|
||||
if (this.user_id) {
|
||||
const sessions = await Session.find({
|
||||
where: { user_id: this.user_id },
|
||||
select: PrivateSessionProjection,
|
||||
|
Loading…
x
Reference in New Issue
Block a user