@chat21/chat21-web-widget 5.0.44-rc.1 → 5.0.45

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
@@ -1,5 +1,11 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.45 in PROD
4
+ - changed: chat21client.js file to 1.12.3
5
+
6
+ ### 5.0.44 in PROD
7
+ - bug-fixed: axios is undefined with MQTT engine
8
+
3
9
  ### 5.0.44-rc.1
4
10
  - added: singleConversation and themeColorOpacity property on /widget api call
5
11
  - bug-fixed: default image for file attachment non rendered
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Chat21Client
3
3
 
4
- v0.1.12.2
4
+ v0.1.12.3
5
5
 
6
6
  @Author Andrea Sponziello
7
7
  (c) Tiledesk 2020
@@ -632,10 +632,10 @@ class Chat21Client {
632
632
  // console.log("Observing conversations added from messages", message_json);
633
633
  // if (this.onConversationAddedCallbacks) {
634
634
  let update_conversation = true;
635
- // temporarily ignoring the updateconversation = false option
636
- // if (message_json.attributes && message_json.attributes.updateconversation == false) {
637
- // update_conversation = false
638
- // }
635
+
636
+ if (message_json.attributes && message_json.attributes.updateconversation == false) {
637
+ update_conversation = false
638
+ }
639
639
  if (update_conversation && this.onConversationAddedCallbacks) {
640
640
  this.onConversationAddedCallbacks.forEach((callback, handler, map) => {
641
641
  message_json.is_new = true;
@@ -1058,8 +1058,8 @@ class Chat21Client {
1058
1058
  }
1059
1059
 
1060
1060
  function isBrowser() {
1061
- // return true;
1062
- return false;
1061
+ return true;
1062
+ // return false;
1063
1063
  }
1064
1064
 
1065
1065
  export { Chat21Client }; // Browser