4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-12 10:15:50 +00:00

fix reactions

This commit is contained in:
Phillip Lang Martinez 2022-12-12 20:35:56 -05:00
parent 10a464c748
commit ac4049cd25
3 changed files with 4 additions and 4 deletions

View File

@ -572,6 +572,8 @@ class ChatPage extends LitElement {
this.openForwardOpen = false
}
render() {
return html`
<div class="chat-container">
@ -1674,7 +1676,7 @@ class ChatPage extends LitElement {
const findEmojiIndex = reactions.findIndex((reaction)=> reaction.type === outSideMsg.reaction)
if(findEmojiIndex !== -1){
let users = reactions[findEmojiIndex].users || []
const findUserIndex = users.find((user)=> user === this.selectedAddress.address )
const findUserIndex = users.findIndex((user)=> user === this.selectedAddress.address )
if(findUserIndex !== -1){
users.splice(findUserIndex, 1)
} else {

View File

@ -15,7 +15,6 @@ function sbrk(size, heap){
self.addEventListener('message', async e => {
console.log({data: e.data})
const response = await computePow(e.data.chatBytes, e.data.path, e.data.difficulty)
postMessage(response)

View File

@ -17,7 +17,6 @@ function sbrk(size, heap){
self.addEventListener('message', async e => {
console.log({data: e.data})
const response = await computePow(e.data.convertedBytes, e.data.path)
postMessage(response)
@ -75,7 +74,7 @@ const workBufferPtr = sbrk(
});
}
console.log({path})
loadWebAssembly(path)
.then(wasmModule => {
response = {