@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
@@ -6,6 +6,9 @@
6
6
  ### **Copyrigth**:
7
7
  *Tiledesk SRL*
8
8
 
9
+ # 5.0.102
10
+ - **bug-fixed**: cannot add message if array is empty
11
+
9
12
  # 5.0.101
10
13
  - **bug-fixed**: removed private note msgs
11
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.101",
4
+ "version": "5.0.102",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -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"){