mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-04-19 09:35:54 +00:00
fix shouldupdated for messages
This commit is contained in:
parent
78942e6bd9
commit
94e9e81570
@ -1125,6 +1125,24 @@ class MessageTemplate extends LitElement {
|
|||||||
if(changedProperties.has('openDialogBlockUser')){
|
if(changedProperties.has('openDialogBlockUser')){
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if(changedProperties.has('viewImage')){
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if(changedProperties.has('isImageLoaded')){
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if(changedProperties.has('openDialogImage')){
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if(changedProperties.has('openDialogPrivateMessage')){
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if(changedProperties.has('openDialogGif')){
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if(changedProperties.has('isGifLoaded')){
|
||||||
|
return true
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1437,8 +1455,9 @@ class MessageTemplate extends LitElement {
|
|||||||
${image && !isImageDeleted && !this.viewImage && this.myAddress !== this.messageObj.sender ? html`
|
${image && !isImageDeleted && !this.viewImage && this.myAddress !== this.messageObj.sender ? html`
|
||||||
<div
|
<div
|
||||||
@click=${() => {
|
@click=${() => {
|
||||||
|
console.log('clicked')
|
||||||
this.viewImage = true
|
this.viewImage = true
|
||||||
this.addSeenMessage(this.messageObj.signature)
|
// this.addSeenMessage(this.messageObj.signature)
|
||||||
}}
|
}}
|
||||||
class=${[`image-container`, !this.isImageLoaded ? 'defaultSize' : ''].join(' ')}
|
class=${[`image-container`, !this.isImageLoaded ? 'defaultSize' : ''].join(' ')}
|
||||||
style=${this.isFirstMessage && "margin-top: 10px;"}>
|
style=${this.isFirstMessage && "margin-top: 10px;"}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user