diff --git a/apps/desktop/index.html b/apps/desktop/index.html index 0f83c981..ad2f6e6f 100644 --- a/apps/desktop/index.html +++ b/apps/desktop/index.html @@ -6,7 +6,7 @@
{item.username}
diff --git a/apps/desktop/src/config.ts b/apps/desktop/src/config.ts index a7562533..16ab471d 100644 --- a/apps/desktop/src/config.ts +++ b/apps/desktop/src/config.ts @@ -26,7 +26,6 @@ export class Config { const config = await readTextFile(this.configPath); this.config = JSON.parse(config); } catch (e) { - console.log(e); this.config = DEFAULT_OVERLAYED_CONFIG; this.save(); } diff --git a/apps/desktop/src/rpc/manager.ts b/apps/desktop/src/rpc/manager.ts index e7ffee72..04122611 100644 --- a/apps/desktop/src/rpc/manager.ts +++ b/apps/desktop/src/rpc/manager.ts @@ -179,8 +179,7 @@ class SocketManager { this.store.clearUsers(); if (this.store.currentChannel) { - console.log("unsub from channel", this.store.currentChannel); - this.channelEvents(RPCCommand.UNSUBSCRIBE, this.store.currentChannel); + this.channelEvents(RPCCommand.UNSUBSCRIBE, this.store.currentChannel.id); } // after unsub we clear the channel @@ -225,7 +224,8 @@ class SocketManager { this.store.setUsers(payload.data.voice_states); // set the current channel - this.store.setCurrentChannel(payload.data.id); + console.log(payload.data) + this.store.setCurrentChannel(payload.data); } } diff --git a/apps/desktop/src/store.ts b/apps/desktop/src/store.ts index fc4f7a1c..6cdb85f7 100644 --- a/apps/desktop/src/store.ts +++ b/apps/desktop/src/store.ts @@ -28,7 +28,10 @@ const createUserStateItem = (payload: VoiceStateUser) => { export interface AppState { clickThrough: boolean; me: OverlayedUser | null; - currentChannel: string | null; + currentChannel: { + id: string; + name: string; + } | null; users: Record