From 77d9df60d89c48f5096a3b2952dc6258b894a071 Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 11 Jan 2023 13:58:54 +0100 Subject: [PATCH] v0.2.0 --- js/app.js | 2 +- js/event_handlers.js | 3 ++- meta.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index e444f49..89ea098 100644 --- a/js/app.js +++ b/js/app.js @@ -13,7 +13,7 @@ function main() { type: "auth", payload: { identifier: "de.tealfire.obs", - version: "0.1.9", + version: "0.2.0", name: "TS5 OBS Overlay", description: "A simple OBS overlay for TS5 by DerTyp876", content: { diff --git a/js/event_handlers.js b/js/event_handlers.js index 1bd13a4..88d3ede 100644 --- a/js/event_handlers.js +++ b/js/event_handlers.js @@ -25,10 +25,11 @@ function handleClientMoved(data) { } // If the disconnected client is the current user - if (data.payload.clientId == thisClient.id) { + if (data.payload.clientId == selfClient.id) { //* NOTE: since this app does support multiple servers yet, we expect the user to be connected to NO servers at this point console.log("You disconnected"); clientList.clear(); // remove all clients. + channelList.clear(); } } else { // Client switched the channel OR JOINED the server to a channel diff --git a/meta.json b/meta.json index 2b4e5ee..1437d5b 100644 --- a/meta.json +++ b/meta.json @@ -1,3 +1,3 @@ { - "version": "v0.1.9" + "version": "v0.2.0" }