@chat21/chat21-web-widget 5.0.77-rc.2 → 5.0.78

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
@@ -5,6 +5,10 @@
5
5
  *Dario De Pascalis*
6
6
  ### **Copyrigth**: *Tiledesk SRL*
7
7
 
8
+ ### 5.0.78 in PROD
9
+
10
+ ### 5.0.77 in PROD
11
+
8
12
  ### 5.0.77-rc.2
9
13
  - bug-fixed: if user click on proactive attachment button, widget show prechatForm
10
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.77-rc.2",
4
+ "version": "5.0.78",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -1796,12 +1796,17 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
1796
1796
  }
1797
1797
 
1798
1798
  openConversationById(requestId){
1799
+ this.logger.log('[APP-COMP] openConversationById in APP COMPONENT', requestId);
1799
1800
  this.isOpenConversation = true;
1800
1801
 
1801
1802
  this.g.setParameter('recipientId', requestId);
1802
1803
  this.appStorageService.setItem('recipientId', requestId)
1803
1804
 
1804
1805
  this.isConversationArchived = false;
1806
+ if (this.g.isOpen === false) {
1807
+ this.f21_open();
1808
+ }
1809
+
1805
1810
  }
1806
1811
 
1807
1812
  /**
@@ -792,7 +792,7 @@
792
792
  }
793
793
 
794
794
  function onClickOpenConversationById(){
795
- let request_id = document.getElementById('request_id')
795
+ let request_id = document.getElementById('request_id').value
796
796
  window.Tiledesk('openConversationById', request_id)
797
797
  }
798
798