Merge pull request #131 from PhillipLangMartinez/bugfix/fix-attachment-send-without-message

fix sending attachment without message
This commit is contained in:
AlphaX-Projects 2023-02-18 12:09:30 +01:00 committed by GitHub
commit abd2dbb02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));