@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 +2 -0
- package/package.json +1 -1
- package/src/app/app.component.ts +12 -12
- package/src/app/utils/globals.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -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 */
|
package/src/app/utils/globals.ts
CHANGED
|
@@ -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 =
|
|
422
|
+
this.showRegisterAudioFooterButton = false;
|
|
423
423
|
|
|
424
424
|
// ============ END: SET EXTERNAL PARAMETERS ==============//
|
|
425
425
|
|