@chat21/chat21-web-widget 5.0.90-rc.4 → 5.0.90

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,8 @@
6
6
  ### **Copyrigth**:
7
7
  *Tiledesk SRL*
8
8
 
9
+ # 5.0.90 in PROD
10
+
9
11
  # 5.0.90-rc.4
10
12
  - **added**: ability to manage footer audioRecord button
11
13
 
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.90-rc.4",
4
+ "version": "5.0.90",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -268,6 +268,18 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
268
268
  return;
269
269
  }
270
270
 
271
+ //set status (open /close)
272
+ if(this.g.isMobile && this.g.onPageChangeVisibilityMobile !== 'last'){
273
+ let isOpen = this.g.onPageChangeVisibilityMobile === 'open'? true: false
274
+ this.g.setIsOpen(isOpen)
275
+ this.appStorageService.setItem('isOpen', isOpen)
276
+ }
277
+ if(!this.g.isMobile && this.g.onPageChangeVisibilityDesktop !== 'last'){
278
+ let isOpen = this.g.onPageChangeVisibilityDesktop === 'open'? true: false
279
+ this.g.setIsOpen(isOpen)
280
+ this.appStorageService.setItem('isOpen', isOpen)
281
+ }
282
+
271
283
 
272
284
  /**CHECK IF JWT IS IN URL PARAMETERS */
273
285
  this.logger.debug('[APP-COMP] check if token is passed throw url: ', this.g.jwt);
@@ -424,18 +436,6 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
424
436
  }
425
437
 
426
438
 
427
- //set status (open /close)
428
- if(this.g.isMobile && this.g.onPageChangeVisibilityMobile !== 'last'){
429
- let isOpen = this.g.onPageChangeVisibilityMobile === 'open'? true: false
430
- this.g.setIsOpen(isOpen)
431
- this.appStorageService.setItem('isOpen', isOpen)
432
- }
433
- if(!this.g.isMobile && this.g.onPageChangeVisibilityDesktop !== 'last'){
434
- let isOpen = this.g.onPageChangeVisibilityDesktop === 'open'? true: false
435
- this.g.setIsOpen(isOpen)
436
- this.appStorageService.setItem('isOpen', isOpen)
437
- }
438
-
439
439
 
440
440
  } else if (state && state === AUTH_STATE_OFFLINE && !this.forceDisconnect) {
441
441
  /** non sono loggato */
@@ -419,7 +419,7 @@ export class Globals {
419
419
  /** show/hide attachment option in footer chat-detail page */
420
420
  this.showAttachmentFooterButton = true;
421
421
  /** show/hide rec audio option in footer chat-detail page */
422
- this.showRegisterAudioFooterButton = true;
422
+ this.showRegisterAudioFooterButton = false;
423
423
 
424
424
  // ============ END: SET EXTERNAL PARAMETERS ==============//
425
425