@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 +6 -0
- package/dist/assets/js/chat21client.js +7 -7
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/src/assets/js/chat21client.js +7 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Chat21Client
|
|
3
3
|
|
|
4
|
-
v0.1.12.
|
|
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
|
-
|
|
636
|
-
|
|
637
|
-
|
|
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
|
-
|
|
1062
|
-
return false;
|
|
1061
|
+
return true;
|
|
1062
|
+
// return false;
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
export { Chat21Client }; // Browser
|