From e1af055dc8bcb2676969b9d57b098e6781df2b01 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 27 Jul 2022 14:09:42 -0400 Subject: [chat] Fix chat bug --- scripts/gui/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/gui') diff --git a/scripts/gui/chat.js b/scripts/gui/chat.js index 31cc460..8960461 100644 --- a/scripts/gui/chat.js +++ b/scripts/gui/chat.js @@ -46,7 +46,7 @@ class Chat { d.className = "chat-text"; - this.chats[dat.id] = {name: dat.name, e: d, btn: b}; + this.chats[dat.id] = {name: dat.name, id: dat.id, e: d, btn: b}; if(dat.follow) this.switchChannel(dat.id) @@ -91,7 +91,7 @@ class Chat { if(str == "") return; this.chatInput.value = ""; - this.socket.send("chat", {channel: this.getActiveChannel().name, text: str}); + this.socket.send("chat", {channel: this.getActiveChannel().id, text: str}); } recieveMessage (msg) -- cgit v1.2.3