Bug: Fix Facebook v7.0 API issues (#863)

* Fix v7.0 API issues

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S 2020-05-17 23:44:50 +05:30 committed by GitHub
parent b7129785c6
commit 6e92d9be9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 45 deletions

View file

@ -208,7 +208,9 @@ export default {
async sendMessage() {
const isMessageEmpty = !this.message.replace(/\n/g, '').length;
if (isMessageEmpty) return;
if (this.message.length > this.maxLength) {
return;
}
if (!this.showCannedResponsesList) {
try {
await this.$store.dispatch('sendMessage', {