reset on serverPropertiesUpdated instead of clientSelfPropertyUpdated

This commit is contained in:
Janis
2022-10-25 20:18:14 +02:00
parent be8c4237ca
commit 2e974c60ca
2 changed files with 1 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ function main() {
case "talkStatusChanged": case "talkStatusChanged":
handleTalkStatusChanged(data); handleTalkStatusChanged(data);
break; break;
case "clientSelfPropertyUpdated": case "serverPropertiesUpdated":
ws.close(); ws.close();
default: default:
console.log(`No handler for event type: ${data.type}`); console.log(`No handler for event type: ${data.type}`);

View File

@@ -21,7 +21,6 @@ function handleClientMoved(data) {
if (data.payload.clientId == thisClient.id) { if (data.payload.clientId == thisClient.id) {
console.log("You disconnected"); console.log("You disconnected");
clientList.clear(); clientList.clear();
//! Maybe handle channel list here too
} }
} else { } else {
// User moved channel // User moved channel