Fix session id shenanigs

This commit is contained in:
Rory&
2025-12-17 03:56:33 +01:00
parent 9400b25492
commit 9264035d67
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export async function Connection(
}
//Create session ID when the connection is opened. This allows gateway dump to group the initial websocket messages with the rest of the conversation.
const session_id = genSessionId();
const session_id = "TEMP_" + genSessionId();
socket.session_id = session_id; //Set the session of the WebSocket object
try {
+1 -1
View File
@@ -136,7 +136,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
tokenData.session ??
Session.create({
user_id: this.user_id,
session_id: "TEMP_" + this.session_id,
session_id = this.session_id,
});
this.session.status = identify.presence?.status || "online";