From 2e974c60ca57d3f962c04ffb489c73caba98c59e Mon Sep 17 00:00:00 2001 From: Janis Date: Tue, 25 Oct 2022 20:18:14 +0200 Subject: [PATCH] reset on serverPropertiesUpdated instead of clientSelfPropertyUpdated --- js/app.js | 2 +- js/event_handlers.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 885463e..689a44e 100644 --- a/js/app.js +++ b/js/app.js @@ -37,7 +37,7 @@ function main() { case "talkStatusChanged": handleTalkStatusChanged(data); break; - case "clientSelfPropertyUpdated": + case "serverPropertiesUpdated": ws.close(); default: console.log(`No handler for event type: ${data.type}`); diff --git a/js/event_handlers.js b/js/event_handlers.js index 0167d18..1ea67c8 100644 --- a/js/event_handlers.js +++ b/js/event_handlers.js @@ -21,7 +21,6 @@ function handleClientMoved(data) { if (data.payload.clientId == thisClient.id) { console.log("You disconnected"); clientList.clear(); - //! Maybe handle channel list here too } } else { // User moved channel