From 8bf0e9c68d40e0480d924cd762ebe7bd46c01dff Mon Sep 17 00:00:00 2001 From: Phillip Date: Fri, 13 Jan 2023 20:17:28 -0500 Subject: [PATCH] fix forwarding --- qortal-ui-core/language/us.json | 4 +- qortal-ui-crypto/api/constants.js | 2 +- .../plugins/core/components/ChatPage.js | 118 ++++++++++++++---- 3 files changed, 97 insertions(+), 27 deletions(-) diff --git a/qortal-ui-core/language/us.json b/qortal-ui-core/language/us.json index 6818dafc..d2e9d87b 100644 --- a/qortal-ui-core/language/us.json +++ b/qortal-ui-core/language/us.json @@ -548,7 +548,9 @@ "cchange39": "Cannot send an encrypted message to this user since they do not have their publickey on chain.", "cchange40": "IMAGE (click to view)", "cchange41":"Your Balance Is Under 4.20 QORT", - "cchange42":"Out of the need to combat spam, accounts with under 4.20 Qort balance will take a long time to SEND messages in Q-Chat. If you wish to immediately increase the send speed for Q-Chat messages, obtain over 4.20 QORT to your address. This can be done with trades in the Trade Portal, or by way of another Qortian giving you the QORT. Once you have over 4.20 QORT in your account, Q-Chat messages will be instant and this dialog will no more show. Thank you for your understanding of this necessary spam prevention method, and we hope you enjoy Qortal!" + "cchange42":"Out of the need to combat spam, accounts with under 4.20 Qort balance will take a long time to SEND messages in Q-Chat. If you wish to immediately increase the send speed for Q-Chat messages, obtain over 4.20 QORT to your address. This can be done with trades in the Trade Portal, or by way of another Qortian giving you the QORT. Once you have over 4.20 QORT in your account, Q-Chat messages will be instant and this dialog will no more show. Thank you for your understanding of this necessary spam prevention method, and we hope you enjoy Qortal!", + "cchange62": "Wrong Username and Address Inputted! Please try again!", + "cchange63": "Please enter a recipient" }, "welcomepage": { diff --git a/qortal-ui-crypto/api/constants.js b/qortal-ui-crypto/api/constants.js index 11c0cbbf..ae139416 100644 --- a/qortal-ui-crypto/api/constants.js +++ b/qortal-ui-crypto/api/constants.js @@ -159,7 +159,7 @@ const ADDRESS_VERSION = 58 const PROXY_URL = "/proxy/" // Chat reference timestamp -const CHAT_REFERENCE_FEATURE_TRIGGER_TIMESTAMP = 1674316800000 +const CHAT_REFERENCE_FEATURE_TRIGGER_TIMESTAMP = 0 // Used as a salt for all qora addresses. Salts used for storing your private keys in local storage will be randomly generated const STATIC_SALT = new Uint8Array([54, 190, 201, 206, 65, 29, 123, 129, 147, 231, 180, 166, 171, 45, 95, 165, 78, 200, 208, 194, 44, 207, 221, 146, 45, 238, 68, 68, 69, 102, 62, 6]) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 7f7d12e8..f20ca847 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -900,8 +900,10 @@ class ChatPage extends LitElement { id="sendTo" placeholder="${translate("chatpage.cchange7")}" @keydown=${() => { - this.forwardActiveChatHeadUrl = {}; - this.requestUpdate(); + if (this.forwardActiveChatHeadUrl.selected) { + this.forwardActiveChatHeadUrl = {}; + this.requestUpdate(); + } } } /> @@ -977,7 +979,6 @@ class ChatPage extends LitElement { ${translate("chatpage.cchange33")}