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":
handleTalkStatusChanged(data);
break;
case "clientSelfPropertyUpdated":
case "serverPropertiesUpdated":
ws.close();
default:
console.log(`No handler for event type: ${data.type}`);

View File

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