From 1955eeba8baf5540ae1204b17cd4420c517a30df Mon Sep 17 00:00:00 2001 From: Phillip Date: Sat, 18 Feb 2023 13:07:12 +0200 Subject: [PATCH] fix sending attachment without message --- qortal-ui-plugins/plugins/core/components/ChatTextEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js index 98e1ae89..105811da 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js +++ b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js @@ -656,7 +656,7 @@ mwc-checkbox::shadow .mdc-checkbox::after, mwc-checkbox::shadow .mdc-checkbox::b } sendMessageFunc(props) { - if(this.editor.isEmpty && this.iframeId !== 'newChat') return + if(this.editor.isEmpty && (this.iframeId !== 'newChat' && this.iframeId !== 'newAttachmentChat')) return this.getMessageSize(this.editor.getJSON()) if (this.chatMessageSize > 4000 ) { parentEpml.request('showSnackBar', get("chatpage.cchange29"));