mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
reset on serverPropertiesUpdated instead of clientSelfPropertyUpdated
This commit is contained in:
@@ -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}`);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user