From ac4049cd259ff1aab183f04f0bceb1fb0c7b4f13 Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Mon, 12 Dec 2022 20:35:56 -0500 Subject: [PATCH] fix reactions --- qortal-ui-plugins/plugins/core/components/ChatPage.js | 4 +++- qortal-ui-plugins/plugins/core/components/computePowWorker.js | 1 - .../plugins/core/components/computePowWorkerImage.js | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 7fc5d3b0..abc5cfcf 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -571,6 +571,8 @@ class ChatPage extends LitElement { }); this.openForwardOpen = false } + + render() { return html` @@ -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 { diff --git a/qortal-ui-plugins/plugins/core/components/computePowWorker.js b/qortal-ui-plugins/plugins/core/components/computePowWorker.js index 96db8beb..2ed60a20 100644 --- a/qortal-ui-plugins/plugins/core/components/computePowWorker.js +++ b/qortal-ui-plugins/plugins/core/components/computePowWorker.js @@ -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) diff --git a/qortal-ui-plugins/plugins/core/components/computePowWorkerImage.js b/qortal-ui-plugins/plugins/core/components/computePowWorkerImage.js index e008361b..d9f5f662 100644 --- a/qortal-ui-plugins/plugins/core/components/computePowWorkerImage.js +++ b/qortal-ui-plugins/plugins/core/components/computePowWorkerImage.js @@ -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 = {