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:
parent
10a464c748
commit
ac4049cd25
@ -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 {
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user