mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-12 18:25: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
|
this.openForwardOpen = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
<div class="chat-container">
|
<div class="chat-container">
|
||||||
@ -1674,7 +1676,7 @@ class ChatPage extends LitElement {
|
|||||||
const findEmojiIndex = reactions.findIndex((reaction)=> reaction.type === outSideMsg.reaction)
|
const findEmojiIndex = reactions.findIndex((reaction)=> reaction.type === outSideMsg.reaction)
|
||||||
if(findEmojiIndex !== -1){
|
if(findEmojiIndex !== -1){
|
||||||
let users = reactions[findEmojiIndex].users || []
|
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){
|
if(findUserIndex !== -1){
|
||||||
users.splice(findUserIndex, 1)
|
users.splice(findUserIndex, 1)
|
||||||
} else {
|
} else {
|
||||||
|
@ -15,7 +15,6 @@ function sbrk(size, heap){
|
|||||||
|
|
||||||
|
|
||||||
self.addEventListener('message', async e => {
|
self.addEventListener('message', async e => {
|
||||||
console.log({data: e.data})
|
|
||||||
const response = await computePow(e.data.chatBytes, e.data.path, e.data.difficulty)
|
const response = await computePow(e.data.chatBytes, e.data.path, e.data.difficulty)
|
||||||
postMessage(response)
|
postMessage(response)
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ function sbrk(size, heap){
|
|||||||
|
|
||||||
|
|
||||||
self.addEventListener('message', async e => {
|
self.addEventListener('message', async e => {
|
||||||
console.log({data: e.data})
|
|
||||||
const response = await computePow(e.data.convertedBytes, e.data.path)
|
const response = await computePow(e.data.convertedBytes, e.data.path)
|
||||||
postMessage(response)
|
postMessage(response)
|
||||||
|
|
||||||
@ -75,7 +74,7 @@ const workBufferPtr = sbrk(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log({path})
|
|
||||||
loadWebAssembly(path)
|
loadWebAssembly(path)
|
||||||
.then(wasmModule => {
|
.then(wasmModule => {
|
||||||
response = {
|
response = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user