mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 12:52:30 +00:00
Dont send sessions replace or presence update for unidentified users
This commit is contained in:
1 parent
6122374e4d
commit
3bbf997295
1 file changed
+3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user