mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
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…
Reference in New Issue
Block a user