From 095e30a92f6d12edf16ca87d66b335088b853490 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 27 Jan 2025 03:37:04 +0100 Subject: [PATCH] Update. --- src/snek/static/chat-window.js | 4 +--- src/snek/static/message-list.js | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/snek/static/chat-window.js b/src/snek/static/chat-window.js index 35e4e78..f6b0102 100644 --- a/src/snek/static/chat-window.js +++ b/src/snek/static/chat-window.js @@ -41,9 +41,7 @@ class ChatWindowElement extends HTMLElement { this.container.appendChild(chatInput) this.component.appendChild(this.container) - console.info(channel) const messages = await app.rpc.getMessages(channel.uid) - console.info(messages) messages.forEach(message=>{ if(!message['user_nick']) return @@ -56,7 +54,7 @@ class ChatWindowElement extends HTMLElement { message.detail.element.scrollIntoView({behavior: 'smooth'}) },10) }) - await app.rpc.sendMessage(channel.uid,"Grrrrr") + } diff --git a/src/snek/static/message-list.js b/src/snek/static/message-list.js index 84207d2..7e17afb 100644 --- a/src/snek/static/message-list.js +++ b/src/snek/static/message-list.js @@ -82,7 +82,6 @@ class MessageListElement extends HTMLElement { this.channel_uid = this.getAttribute("channel") const me = this app.addEventListener(this.channel_uid, (data) => { - console.info("WIIIIIIIIIIIIIIIIIIIIIIII") me.addMessage(data) }) this.dispatchEvent(new CustomEvent("rendered", {detail:this,bubbles:true}))