Dont send sessions replace or presence update for unidentified users

This commit is contained in:
Madeline
2023-01-13 13:44:19 +11:00
parent 1e1ba96a3c
commit ff15dd8a9d

View File

@@ -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,