From 94e9e8157019f15dc11e590dd2e4731d17fd337e Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 15 Sep 2023 23:42:42 -0500 Subject: [PATCH] fix shouldupdated for messages --- .../plugins/core/components/ChatScroller.js | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/plugins/plugins/core/components/ChatScroller.js b/plugins/plugins/core/components/ChatScroller.js index b44b4a2e..da55aaa1 100644 --- a/plugins/plugins/core/components/ChatScroller.js +++ b/plugins/plugins/core/components/ChatScroller.js @@ -1125,6 +1125,24 @@ class MessageTemplate extends LitElement { if(changedProperties.has('openDialogBlockUser')){ 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 } @@ -1437,8 +1455,9 @@ class MessageTemplate extends LitElement { ${image && !isImageDeleted && !this.viewImage && this.myAddress !== this.messageObj.sender ? html`
{ + console.log('clicked') this.viewImage = true - this.addSeenMessage(this.messageObj.signature) + // this.addSeenMessage(this.messageObj.signature) }} class=${[`image-container`, !this.isImageLoaded ? 'defaultSize' : ''].join(' ')} style=${this.isFirstMessage && "margin-top: 10px;"}>