From ce442dee1bc6485862fcb6a2b6a5ae82a03ef339 Mon Sep 17 00:00:00 2001 From: Phillip Date: Thu, 2 Feb 2023 11:34:38 +0200 Subject: [PATCH 1/4] chatference, switch reference for signature --- .../plugins/core/components/ChatPage.js | 24 +++++++++---------- .../plugins/core/components/ChatScroller.js | 8 +++---- .../plugins/core/components/ChatTextEditor.js | 2 +- .../plugins/utils/replace-messages-edited.js | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 91691e05..5a374a4d 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -1510,7 +1510,7 @@ class ChatPage extends LitElement { } async goToRepliedMessage(message, clickedOnMessage){ - const findMessage = this.shadowRoot.querySelector('chat-scroller').shadowRoot.getElementById(message.reference) + const findMessage = this.shadowRoot.querySelector('chat-scroller').shadowRoot.getElementById(message.signature) if(findMessage){ findMessage.scrollIntoView({ behavior: 'smooth', block: 'center' }) @@ -1534,7 +1534,7 @@ class ChatPage extends LitElement { if((message.timestamp - this.messagesRendered[0].timestamp) < 86400000){ - const findOriginalMessage = this.shadowRoot.querySelector('chat-scroller').shadowRoot.getElementById(clickedOnMessage.reference) + const findOriginalMessage = this.shadowRoot.querySelector('chat-scroller').shadowRoot.getElementById(clickedOnMessage.signature) if(findOriginalMessage){ const messageClientRect = findOriginalMessage.getBoundingClientRect() this.isLoadingGoToRepliedMessage = { @@ -1546,7 +1546,7 @@ class ChatPage extends LitElement { } } await this.getOldMessageDynamic(0, this.messagesRendered[0].timestamp, message.timestamp - 7200000) - const findMessage = this.shadowRoot.querySelector('chat-scroller').shadowRoot.getElementById(message.reference) + const findMessage = this.shadowRoot.querySelector('chat-scroller').shadowRoot.getElementById(message.signature) if(findMessage){ this.isLoadingGoToRepliedMessage = { ...this.isLoadingGoToRepliedMessage, @@ -2014,7 +2014,7 @@ class ChatPage extends LitElement { await this.getUpdateComplete(); const marginElements = Array.from(this.shadowRoot.querySelector('chat-scroller').shadowRoot.querySelectorAll('message-template')); - const findElement = marginElements.find((item)=> item.messageObj.reference === scrollElement.messageObj.reference) + const findElement = marginElements.find((item)=> item.messageObj.signature === scrollElement.messageObj.signature) if(findElement){ findElement.scrollIntoView({ behavior: 'auto', block: 'center' }); @@ -2047,7 +2047,7 @@ class ChatPage extends LitElement { this.isLoadingOldMessages = false await this.getUpdateComplete(); const marginElements = Array.from(this.shadowRoot.querySelector('chat-scroller').shadowRoot.querySelectorAll('message-template')); - const findElement = marginElements.find((item)=> item.messageObj.reference === scrollElement.messageObj.reference) + const findElement = marginElements.find((item)=> item.messageObj.signature === scrollElement.messageObj.signature) if(findElement){ findElement.scrollIntoView({ behavior: 'auto', block: 'center' }); @@ -2085,7 +2085,7 @@ class ChatPage extends LitElement { await this.getUpdateComplete(); const marginElements = Array.from(this.shadowRoot.querySelector('chat-scroller').shadowRoot.querySelectorAll('message-template')); - const findElement = marginElements.find((item)=> item.messageObj.reference === scrollElement.messageObj.reference) + const findElement = marginElements.find((item)=> item.messageObj.signature === scrollElement.messageObj.signature) if(findElement){ findElement.scrollIntoView({ behavior: 'auto', block: 'center' }); @@ -2118,7 +2118,7 @@ class ChatPage extends LitElement { this.isLoadingOldMessages = false await this.getUpdateComplete(); const marginElements = Array.from(this.shadowRoot.querySelector('chat-scroller').shadowRoot.querySelectorAll('message-template')); - const findElement = marginElements.find((item)=> item.messageObj.reference === scrollElement.messageObj.reference) + const findElement = marginElements.find((item)=> item.messageObj.signature === scrollElement.messageObj.signature) if(findElement){ findElement.scrollIntoView({ behavior: 'auto', block: 'center' }); @@ -2224,7 +2224,7 @@ class ChatPage extends LitElement { async renderNewMessage(newMessage) { if(newMessage.chatReference){ - const findOriginalMessageIndex = this.messagesRendered.findIndex(msg=> msg.reference === newMessage.chatReference || (msg.chatReference && msg.chatReference === newMessage.chatReference) ) + const findOriginalMessageIndex = this.messagesRendered.findIndex(msg=> msg.signature === newMessage.chatReference || (msg.chatReference && msg.chatReference === newMessage.chatReference) ) if(findOriginalMessageIndex !== -1){ const newMessagesRendered = [...this.messagesRendered] newMessagesRendered[findOriginalMessageIndex] = {...newMessage, timestamp: newMessagesRendered[findOriginalMessageIndex].timestamp, senderName: newMessagesRendered[findOriginalMessageIndex].senderName, @@ -2632,7 +2632,7 @@ class ChatPage extends LitElement { return } typeMessage = 'edit'; - let chatReference = outSideMsg.editedMessageObj.reference; + let chatReference = outSideMsg.editedMessageObj.signature; if(outSideMsg.editedMessageObj.chatReference){ chatReference = outSideMsg.editedMessageObj.chatReference; @@ -2737,7 +2737,7 @@ class ChatPage extends LitElement { } else if (outSideMsg && outSideMsg.type === 'reaction') { const userName = await getName(this.selectedAddress.address); typeMessage = 'edit'; - let chatReference = outSideMsg.editedMessageObj.reference; + let chatReference = outSideMsg.editedMessageObj.signature; if (outSideMsg.editedMessageObj.chatReference) { chatReference = outSideMsg.editedMessageObj.chatReference; @@ -2795,7 +2795,7 @@ class ChatPage extends LitElement { } else if (this.repliedToMessageObj) { - let chatReference = this.repliedToMessageObj.reference; + let chatReference = this.repliedToMessageObj.signature; if(this.repliedToMessageObj.chatReference){ chatReference = this.repliedToMessageObj.chatReference; } @@ -2810,7 +2810,7 @@ class ChatPage extends LitElement { this.sendMessage(stringifyMessageObject, typeMessage); } else if (this.editedMessageObj) { typeMessage = 'edit' - let chatReference = this.editedMessageObj.reference + let chatReference = this.editedMessageObj.signature if(this.editedMessageObj.chatReference){ chatReference = this.editedMessageObj.chatReference diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller.js b/qortal-ui-plugins/plugins/core/components/ChatScroller.js index 1337aef4..30d8cf70 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller.js @@ -123,7 +123,7 @@ class ChatScroller extends LitElement { ${formattedMessages.map((formattedMessage) => { return repeat( formattedMessage.messages, - (message) => message.reference, + (message) => message.signature, (message, indexMessage) => html` this.setOpenTipUser(val)} .setOpenUserInfo=${(val) => this.setOpenUserInfo(val)} .setUserName=${(val) => this.setUserName(val)} - id=${message.reference} + id=${message.signature} .goToRepliedMessage=${this.goToRepliedMessage} .addSeenMessage=${(val)=> this.addSeenMessage(val)} .listSeenMessages=${this.listSeenMessages} @@ -346,7 +346,7 @@ class MessageTemplate extends LitElement { firstUpdated(){ const autoSeeChatList = window.parent.reduxStore.getState().app?.autoLoadImageChats - if(autoSeeChatList.includes(this.chatId) || this.listSeenMessages.includes(this.messageObj.reference)){ + if(autoSeeChatList.includes(this.chatId) || this.listSeenMessages.includes(this.messageObj.signature)){ this.viewImage = true } @@ -590,7 +590,7 @@ class MessageTemplate extends LitElement {
{ this.viewImage = true - this.addSeenMessage(this.messageObj.reference) + this.addSeenMessage(this.messageObj.signature) }} class=${[`image-container`, !this.isImageLoaded ? 'defaultSize' : ''].join(' ')} style=${this.isFirstMessage && "margin-top: 10px;"}> diff --git a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js index 3c06df95..aff7c185 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js +++ b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js @@ -659,7 +659,7 @@ mwc-checkbox::shadow .mdc-checkbox::after, mwc-checkbox::shadow .mdc-checkbox::b let messageObject = {}; if (this.repliedToMessageObj) { - let chatReference = this.repliedToMessageObj.reference; + let chatReference = this.repliedToMessageObj.signature; if (this.repliedToMessageObj.chatReference) { chatReference = this.repliedToMessageObj.chatReference; } diff --git a/qortal-ui-plugins/plugins/utils/replace-messages-edited.js b/qortal-ui-plugins/plugins/utils/replace-messages-edited.js index b55e8848..db45d8e8 100644 --- a/qortal-ui-plugins/plugins/utils/replace-messages-edited.js +++ b/qortal-ui-plugins/plugins/utils/replace-messages-edited.js @@ -14,7 +14,7 @@ export const replaceMessagesEdited = async ({ } const response = await parentEpml.request("apiCall", { type: "api", - url: `/chat/messages?chatreference=${msg.reference}&reverse=true${msgQuery}`, + url: `/chat/messages?chatreference=${msg.signature}&reverse=true${msgQuery}`, }) if (response && Array.isArray(response) && response.length !== 0) { @@ -52,7 +52,7 @@ export const replaceMessagesEdited = async ({ if (parsedMessageObj.repliedTo) { const originalReply = await parentEpml.request("apiCall", { type: "api", - url: `/chat/messages?reference=${parsedMessageObj.repliedTo}&reverse=true${msgQuery}`, + url: `/chat/messages?signature=${parsedMessageObj.repliedTo}&reverse=true${msgQuery}`, }) const response = await parentEpml.request("apiCall", { type: "api", From 8b03d30f9cf30426c775cf377955ff331d2cee8d Mon Sep 17 00:00:00 2001 From: Phillip Date: Thu, 16 Feb 2023 22:58:37 +0200 Subject: [PATCH 2/4] fetch with signature --- qortal-ui-core/package.json | 23 +++++++------ qortal-ui-plugins/package.json | 29 ++++++++-------- .../plugins/core/components/ChatPage.js | 8 ++--- .../plugins/core/components/ChatScroller.js | 7 ++-- .../plugins/core/components/ChatTextEditor.js | 6 ++-- .../core/messaging/q-chat/q-chat.src.js | 2 +- .../plugins/utils/replace-messages-edited.js | 34 ++++++++++++------- 7 files changed, 61 insertions(+), 48 deletions(-) diff --git a/qortal-ui-core/package.json b/qortal-ui-core/package.json index 5515942d..16b78477 100644 --- a/qortal-ui-core/package.json +++ b/qortal-ui-core/package.json @@ -17,9 +17,9 @@ "author": "QORTAL ", "license": "GPL-3.0", "dependencies": { - "@hapi/hapi": "21.2.0", + "@hapi/hapi": "21.2.1", "@hapi/inert": "7.0.0", - "sass": "1.57.1" + "sass": "1.58.0" }, "devDependencies": { "@babel/core": "7.20.12", @@ -58,22 +58,23 @@ "@rollup/plugin-commonjs": "24.0.1", "@rollup/plugin-node-resolve": "15.0.1", "@rollup/plugin-replace": "5.0.2", - "@rollup/plugin-terser": "0.3.0", - "@vaadin/button": "23.3.5", - "@vaadin/grid": "23.3.5", - "@vaadin/icons": "23.3.5", - "@vaadin/password-field": "23.3.5", - "@vaadin/tooltip": "23.3.5", + "@rollup/plugin-terser": "0.4.0", + "@vaadin/button": "23.3.7", + "@vaadin/grid": "23.3.7", + "@vaadin/icons": "23.3.7", + "@vaadin/password-field": "23.3.7", + "@vaadin/tooltip": "23.3.7", "asmcrypto.js": "2.3.2", "bcryptjs": "2.4.3", "epml": "0.3.3", "file-saver": "2.0.5", "lit": "2.6.1", "lit-translate": "2.0.1", + "localforage": "1.10.0", "pwa-helpers": "0.9.1", - "redux": "4.2.0", + "redux": "4.2.1", "redux-thunk": "2.4.2", - "rollup": "3.10.1", + "rollup": "3.14.0", "rollup-plugin-node-globals": "1.4.0", "rollup-plugin-progress": "1.1.2", "rollup-plugin-scss": "3.0.0", @@ -82,4 +83,4 @@ "engines": { "node": ">=16.17.1" } -} \ No newline at end of file +} diff --git a/qortal-ui-plugins/package.json b/qortal-ui-plugins/package.json index 7ab1011d..19a1297e 100644 --- a/qortal-ui-plugins/package.json +++ b/qortal-ui-plugins/package.json @@ -20,13 +20,14 @@ "@lit-labs/motion": "1.0.3", "@material/mwc-list": "0.27.0", "@material/mwc-select": "0.27.0", - "@tiptap/core": "2.0.0-beta.209", - "@tiptap/extension-highlight": "2.0.0-beta.209", - "@tiptap/extension-image": "2.0.0-beta.209", - "@tiptap/extension-placeholder": "2.0.0-beta.209", - "@tiptap/extension-underline": "2.0.0-beta.209", - "@tiptap/html": "2.0.0-beta.209", - "@tiptap/starter-kit": "2.0.0-beta.209", + "@tiptap/pm": "2.0.0-beta.212", + "@tiptap/core": "2.0.0-beta.212", + "@tiptap/extension-highlight": "2.0.0-beta.212", + "@tiptap/extension-image": "2.0.0-beta.212", + "@tiptap/extension-placeholder": "2.0.0-beta.212", + "@tiptap/extension-underline": "2.0.0-beta.212", + "@tiptap/html": "2.0.0-beta.212", + "@tiptap/starter-kit": "2.0.0-beta.212", "asmcrypto.js": "2.3.2", "compressorjs": "1.1.1", "emoji-picker-js": "https://github.com/Qortal/emoji-picker-js", @@ -69,19 +70,19 @@ "@rollup/plugin-commonjs": "24.0.1", "@rollup/plugin-node-resolve": "15.0.1", "@rollup/plugin-replace": "5.0.2", - "@rollup/plugin-terser": "0.3.0", - "@vaadin/avatar": "23.3.5", - "@vaadin/button": "23.3.5", - "@vaadin/grid": "23.3.5", - "@vaadin/icons": "23.3.5", - "@vaadin/tooltip": "23.3.5", + "@rollup/plugin-terser": "0.4.0", + "@vaadin/avatar": "23.3.7", + "@vaadin/button": "23.3.7", + "@vaadin/grid": "23.3.7", + "@vaadin/icons": "23.3.7", + "@vaadin/tooltip": "23.3.7", "epml": "0.3.3", "file-saver": "2.0.5", "highcharts": "10.3.3", "html-escaper": "3.0.3", "lit": "2.6.1", "lit-translate": "2.0.1", - "rollup": "3.10.1", + "rollup": "3.14.0", "rollup-plugin-node-globals": "1.4.0", "rollup-plugin-progress": "1.1.2", "rollup-plugin-web-worker-loader": "1.6.1", diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 5a374a4d..820799cf 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -991,7 +991,7 @@ class ChatPage extends LitElement { ${this.repliedToMessageObj.version.toString() === '1' ? html` ${this.repliedToMessageObj.message} ` : ''} - ${this.repliedToMessageObj.version.toString() === '2' + ${+this.repliedToMessageObj.version > 1 ? html` ${unsafeHTML(generateHTML(this.repliedToMessageObj.message, [ @@ -2730,7 +2730,7 @@ class ChatPage extends LitElement { }], isImageDeleted: false, repliedTo: '', - version: 2 + version: 3 }; const stringifyMessageObject = JSON.stringify(messageObject); this.sendMessage(stringifyMessageObject, typeMessage); @@ -2804,7 +2804,7 @@ class ChatPage extends LitElement { messageText: trimmedMessage, images: [''], repliedTo: chatReference, - version: 2 + version: 3 } const stringifyMessageObject = JSON.stringify(messageObject); this.sendMessage(stringifyMessageObject, typeMessage); @@ -2836,7 +2836,7 @@ class ChatPage extends LitElement { messageText: trimmedMessage, images: [''], repliedTo: '', - version: 2 + version: 3 } const stringifyMessageObject = JSON.stringify(messageObject) diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller.js b/qortal-ui-plugins/plugins/core/components/ChatScroller.js index 30d8cf70..cff2e0b5 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller.js @@ -371,7 +371,8 @@ class MessageTemplate extends LitElement { let isEdited = false try { const parsedMessageObj = JSON.parse(this.messageObj.decodedMessage); - if(parsedMessageObj.version.toString() === '2'){ + console.log({parsedMessageObj}, +parsedMessageObj.version, +parsedMessageObj.version > 1) + if(+parsedMessageObj.version > 1){ messageVersion2 = generateHTML(parsedMessageObj.messageText, [ StarterKit, @@ -574,7 +575,7 @@ class MessageTemplate extends LitElement { ${version.toString() === '1' ? html` ${repliedToData.decodedMessage.messageText} ` : ''} - ${version.toString() === '2' ? html` + ${+version > 1 ? html` ${unsafeHTML(generateHTML(repliedToData.decodedMessage.messageText, [ StarterKit, Underline, @@ -627,7 +628,7 @@ class MessageTemplate extends LitElement { id="messageContent" class="message" style=${(image && replacedMessage !== "") &&"margin-top: 15px;"}> - ${version.toString() === '2' ? html` + ${+version > 1 ? html` ${unsafeHTML(messageVersion2)} ` : ''} ${version.toString() === '1' ? html` diff --git a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js index aff7c185..e7879324 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js +++ b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js @@ -667,7 +667,7 @@ mwc-checkbox::shadow .mdc-checkbox::after, mwc-checkbox::shadow .mdc-checkbox::b messageText: trimmedMessage, images: [''], repliedTo: chatReference, - version: 2 + version: 3 } } else if (this.editedMessageObj) { let message = ""; @@ -690,14 +690,14 @@ mwc-checkbox::shadow .mdc-checkbox::after, mwc-checkbox::shadow .mdc-checkbox::b identifier: '123456' }], repliedTo: '', - version: 2 + version: 3 }; } else { messageObject = { messageText: trimmedMessage, images: [''], repliedTo: '', - version: 2 + version: 3 }; } diff --git a/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js b/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js index a8b268e5..4b62cbf5 100644 --- a/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js +++ b/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js @@ -533,7 +533,7 @@ class Chat extends LitElement { messageText: trimmedMessage, images: [''], repliedTo: '', - version: 2 + version: 3 } const stringifyMessageObject = JSON.stringify(messageObject) this.sendMessage(stringifyMessageObject); diff --git a/qortal-ui-plugins/plugins/utils/replace-messages-edited.js b/qortal-ui-plugins/plugins/utils/replace-messages-edited.js index db45d8e8..82045e6b 100644 --- a/qortal-ui-plugins/plugins/utils/replace-messages-edited.js +++ b/qortal-ui-plugins/plugins/utils/replace-messages-edited.js @@ -50,24 +50,36 @@ export const replaceMessagesEdited = async ({ msgQuery = `&txGroupId=${msg.txGroupId}` } if (parsedMessageObj.repliedTo) { - const originalReply = await parentEpml.request("apiCall", { - type: "api", - url: `/chat/messages?signature=${parsedMessageObj.repliedTo}&reverse=true${msgQuery}`, - }) + console.log({parsedMessageObj}) + let originalReply + if(+parsedMessageObj.version > 2){ + originalReply = await parentEpml.request("apiCall", { + type: "api", + url: `/chat/message/${parsedMessageObj.repliedTo}`, + }) + } + if(+parsedMessageObj.version < 3){ + originalReply = await parentEpml.request("apiCall", { + type: "api", + url: `/chat/messages?reference=${parsedMessageObj.repliedTo}&reverse=true${msgQuery}`, + }) + } + + const response = await parentEpml.request("apiCall", { type: "api", url: `/chat/messages?chatreference=${parsedMessageObj.repliedTo}&reverse=true${msgQuery}`, }) + + const originalReplyMessage = originalReply.timestamp ? originalReply : originalReply.length !== 0 ? originalReply[0] : null if ( - originalReply && - Array.isArray(originalReply) && - originalReply.length !== 0 && + originalReplyMessage && response && Array.isArray(response) && response.length !== 0 ) { - const decodeOriginalReply = decodeMessageFunc(originalReply[0], isReceipient, _publicKey) + const decodeOriginalReply = decodeMessageFunc(originalReplyMessage, isReceipient, _publicKey) const decodeUpdatedReply = decodeMessageFunc(response[0], isReceipient, _publicKey) const formattedRepliedToData = { @@ -83,14 +95,12 @@ export const replaceMessagesEdited = async ({ if ( - originalReply && - Array.isArray(originalReply) && - originalReply.length !== 0 + originalReplyMessage ) { msgItem = { ...msg, - repliedToData: decodeMessageFunc(originalReply[0], isReceipient, _publicKey), + repliedToData: decodeMessageFunc(originalReplyMessage, isReceipient, _publicKey), } } } From 215ab4ef231ae1d9d7d10441143fb806b17526f9 Mon Sep 17 00:00:00 2001 From: Phillip Date: Thu, 16 Feb 2023 23:08:07 +0200 Subject: [PATCH 3/4] switch to signature --- qortal-ui-plugins/plugins/core/components/ChatPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 7dee800d..32f5840c 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -2784,7 +2784,7 @@ class ChatPage extends LitElement { return } typeMessage = 'edit'; - let chatReference = outSideMsg.editedMessageObj.reference; + let chatReference = outSideMsg.editedMessageObj.signature; if(outSideMsg.editedMessageObj.chatReference){ chatReference = outSideMsg.editedMessageObj.chatReference; From 160b4449269f7b9e4a8fc5beb38fcdca051958b3 Mon Sep 17 00:00:00 2001 From: Phillip Date: Thu, 16 Feb 2023 23:38:09 +0200 Subject: [PATCH 4/4] remove console.log --- qortal-ui-plugins/plugins/core/components/ChatScroller.js | 1 - 1 file changed, 1 deletion(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller.js b/qortal-ui-plugins/plugins/core/components/ChatScroller.js index 4a6e7111..7ed44c52 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller.js @@ -392,7 +392,6 @@ class MessageTemplate extends LitElement { let attachment = null; try { const parsedMessageObj = JSON.parse(this.messageObj.decodedMessage); - console.log({parsedMessageObj}, +parsedMessageObj.version, +parsedMessageObj.version > 1) if(+parsedMessageObj.version > 1){ messageVersion2 = generateHTML(parsedMessageObj.messageText, [