@chat21/chat21-web-widget 5.0.80-rc.2 → 5.0.80
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 -1
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.ts +0 -1
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +2 -2
- package/src/app/component/message/audio/audio.component.ts +0 -1
- package/src/app/component/message/bubble-message/bubble-message.component.ts +0 -1
- package/src/app/component/message/carousel/carousel.component.ts +0 -1
- package/src/app/component/message/frame/frame.component.spec.ts +0 -1
- package/src/app/component/send-button/send-button.component.ts +0 -1
- package/src/chat21-core/providers/mqtt/mqtt-notifications.ts +2 -2
- package/src/chat21-core/providers/native/native-image-repo.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*Dario De Pascalis*
|
|
6
6
|
### **Copyrigth**: *Tiledesk SRL*
|
|
7
7
|
|
|
8
|
+
### 5.0.80 in PROD
|
|
9
|
+
|
|
8
10
|
### 5.0.80-rc.2
|
|
9
11
|
- changed: background color network disconnection msg
|
|
10
12
|
|
|
@@ -13,7 +15,6 @@
|
|
|
13
15
|
- added: onDisconnect MQTT method to subscribe and manage reconnect/close/offline event
|
|
14
16
|
- changed: v0.1.12.8 chat21client.js
|
|
15
17
|
|
|
16
|
-
|
|
17
18
|
### 5.0.79 in PROD
|
|
18
19
|
|
|
19
20
|
### 5.0.79-rc.3
|
package/package.json
CHANGED
package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts
CHANGED
|
@@ -65,7 +65,7 @@ export class ConversationPreviewComponent implements OnInit {
|
|
|
65
65
|
getMetadataSize(metadata): {width, height} {
|
|
66
66
|
const MAX_WIDTH_IMAGES_PREVIEW = 230
|
|
67
67
|
const MAX_HEIGHT_IMAGES_PREIEW = 150
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
if(metadata.width === undefined){
|
|
70
70
|
metadata.width= MAX_WIDTH_IMAGES_PREVIEW
|
|
71
71
|
}
|
|
@@ -96,7 +96,7 @@ export class ConversationPreviewComponent implements OnInit {
|
|
|
96
96
|
sizeImage.width = MAX_HEIGHT_IMAGES_PREIEW / ratio;
|
|
97
97
|
sizeImage.height = MAX_HEIGHT_IMAGES_PREIEW ;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
return sizeImage; // h.toString();
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -19,7 +19,6 @@ export class AudioComponent implements OnInit {
|
|
|
19
19
|
constructor(private elementRef: ElementRef) { }
|
|
20
20
|
|
|
21
21
|
ngOnInit() {
|
|
22
|
-
// console.log('metadataaaaaa', this.metadata)
|
|
23
22
|
// this.divPlay = this.elementRef.nativeElement.querySelector('#audio_container').querySelector('#audio_msg')
|
|
24
23
|
// this.playState= this.elementRef.nativeElement.querySelector('#audio_container').querySelector('#duration')
|
|
25
24
|
}
|
|
@@ -78,7 +78,6 @@ export class CarouselComponent implements OnInit{
|
|
|
78
78
|
ngOnChanges(changes: SimpleChanges){
|
|
79
79
|
if(this.message && this.message.attributes && this.message.attributes?.attachment && this.message.attributes?.attachment?.gallery){
|
|
80
80
|
this.gallery = this.message.attributes.attachment.gallery
|
|
81
|
-
// console.log('carrrrrrrrr', this.wrapper, this.elementRef.nativeElement.querySelector(".card"))
|
|
82
81
|
// this.firstCardWidth = (this.elementRef.nativeElement.querySelector(".card") as HTMLElement).offsetWidth
|
|
83
82
|
}
|
|
84
83
|
|
|
@@ -31,7 +31,6 @@ describe('FrameComponent', () => {
|
|
|
31
31
|
|
|
32
32
|
it('should create', () => {
|
|
33
33
|
component.url = component['sanitizer'].bypassSecurityTrustResourceUrl('http://www.tiledesk.com');
|
|
34
|
-
console.log('cccccc', component)
|
|
35
34
|
fixture.detectChanges();
|
|
36
35
|
expect(component).toBeTruthy();
|
|
37
36
|
});
|
|
@@ -38,10 +38,10 @@ export class MQTTNotifications extends NotificationsService {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
getNotificationPermissionAndSaveToken(currentUserUid) {
|
|
41
|
-
|
|
41
|
+
this.logger.log("[MQTTNotificationService] getNotificationPermissionAndSaveToken()",currentUserUid);
|
|
42
42
|
this.userId = currentUserUid;
|
|
43
43
|
if (firebase.messaging.isSupported()) {
|
|
44
|
-
|
|
44
|
+
this.logger.log("[MQTTNotificationService] firebase.messaging.isSupported -> YES");
|
|
45
45
|
const messaging = firebase.messaging();
|
|
46
46
|
// messaging.requestPermission()
|
|
47
47
|
Notification.requestPermission().then((permission) => {
|
|
@@ -31,7 +31,7 @@ export class NativeImageRepoService extends ImageRepoService {
|
|
|
31
31
|
checkImageExists(url: string, callback: (exist: boolean) => void): void {
|
|
32
32
|
this.http.get(url).subscribe( res => {
|
|
33
33
|
callback(true)
|
|
34
|
-
},(error) => { console.log('
|
|
34
|
+
},(error) => { console.log('[NATIVE-IMAGE-REPO-SERVICE] checkImageExists error:', url, error);callback(false)})
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
}
|