Update.
This commit is contained in:
parent
26210f8c09
commit
095e30a92f
@ -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")
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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}))
|
||||
|
Loading…
Reference in New Issue
Block a user