@chat21/chat21-web-widget 5.0.71-rc.2 → 5.0.71-rc.4
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/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -140,7 +140,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
140
140
|
const that = this;
|
|
141
141
|
const subChangedConversation = this.conversationsHandlerService.conversationChanged.subscribe((conversation) => {
|
|
142
142
|
// that.ngZone.run(() => {
|
|
143
|
-
|
|
143
|
+
if (conversation) {
|
|
144
144
|
this.onImageLoaded(conversation)
|
|
145
145
|
this.onConversationLoaded(conversation)
|
|
146
146
|
|
|
@@ -148,7 +148,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
148
148
|
that.disposeWidget();
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
|
|
152
152
|
if(conversation.is_new && conversation.sender !== this.g.senderId && !isInfo(conversation)){
|
|
153
153
|
that.manageTabNotification();
|
|
154
154
|
}
|
|
@@ -478,7 +478,7 @@ export class FirebaseConversationsHandler extends ConversationsHandlerService {
|
|
|
478
478
|
private changed(childSnapshot: any) {
|
|
479
479
|
const oldConversation = this.conversations[searchIndexInArrayForUid(this.conversations, childSnapshot.key)]
|
|
480
480
|
//skip info message updates
|
|
481
|
-
if(messageType(MESSAGE_TYPE_INFO,
|
|
481
|
+
if(messageType(MESSAGE_TYPE_INFO, childSnapshot.val()) ){
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
484
484
|
if (this.conversationGenerate(childSnapshot)) {
|
|
@@ -334,6 +334,11 @@ export class MQTTConversationsHandler extends ConversationsHandlerService {
|
|
|
334
334
|
// this.logger.debug('[MQTTConversationsHandler] aggiorno key:' + k);
|
|
335
335
|
conv.type = snap[k];
|
|
336
336
|
}
|
|
337
|
+
if (k === 'conversation_with_fullname') {
|
|
338
|
+
// this.logger.debug('[MQTTConversationsHandler] aggiorno key:' + k);
|
|
339
|
+
conv.conversation_with_fullname = snap[k];
|
|
340
|
+
}
|
|
341
|
+
conv = this.completeConversation(conv)
|
|
337
342
|
|
|
338
343
|
});
|
|
339
344
|
}
|