@chat21/chat21-web-widget 5.0.101 → 5.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -470,6 +470,7 @@ export class FirebaseConversationHandler extends ConversationHandlerService {
|
|
|
470
470
|
const that = this;
|
|
471
471
|
const commands = msg.attributes.commands;
|
|
472
472
|
let i=0;
|
|
473
|
+
if(commands.length === 0) return;
|
|
473
474
|
return new Promise((resolve, reject)=>{
|
|
474
475
|
function execute(command){
|
|
475
476
|
if(command.type === "message"){
|
|
@@ -465,6 +465,7 @@ export class MQTTConversationHandler extends ConversationHandlerService {
|
|
|
465
465
|
const that = this;
|
|
466
466
|
const commands = msg.attributes.commands;
|
|
467
467
|
let i=0;
|
|
468
|
+
if(commands.length === 0) return;
|
|
468
469
|
return new Promise((resolve, reject)=>{
|
|
469
470
|
function execute(command){
|
|
470
471
|
if(command.type === "message"){
|