@chat21/chat21-ionic 3.4.21-rc3 → 3.4.21-rc5
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 +6 -0
- package/package.json +1 -1
- package/src/app/app.component.ts +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
### **Copyrigth**:
|
|
9
9
|
*Tiledesk SRL*
|
|
10
10
|
|
|
11
|
+
# 3.4.21-rc5
|
|
12
|
+
- **added**: setConversation as read when agent click on it
|
|
13
|
+
|
|
14
|
+
# 3.4.21-rc4
|
|
15
|
+
- **added**: ability to init and decrement new conversation count badge
|
|
16
|
+
|
|
11
17
|
# 3.4.21-rc3
|
|
12
18
|
- **changed**: badge notification for agentDesktop
|
|
13
19
|
|
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -1111,7 +1111,7 @@ export class AppComponent implements OnInit {
|
|
|
1111
1111
|
if (conversation && conversation.is_new === true && this.isInitialized) {
|
|
1112
1112
|
this.manageTabNotification('conv_added', conversation.sound)
|
|
1113
1113
|
this.manageEventNewConversation(conversation)
|
|
1114
|
-
this.
|
|
1114
|
+
this.setNotification();
|
|
1115
1115
|
}
|
|
1116
1116
|
if(conversation) this.updateConversationsOnStorage()
|
|
1117
1117
|
});
|
|
@@ -1345,7 +1345,10 @@ export class AppComponent implements OnInit {
|
|
|
1345
1345
|
|
|
1346
1346
|
subscribeConversationSelected= (conversation: ConversationModel) => {
|
|
1347
1347
|
if(conversation && conversation.is_new){
|
|
1348
|
-
this.audio_NewConv.pause()
|
|
1348
|
+
this.audio_NewConv.pause();
|
|
1349
|
+
this.conversationsHandlerService.setConversationRead(conversation.uid)
|
|
1350
|
+
//UPDATE NOTIFICATION FOR NEW CONVERSATION COUNT
|
|
1351
|
+
this.setNotification();
|
|
1349
1352
|
}
|
|
1350
1353
|
}
|
|
1351
1354
|
|
|
@@ -1421,6 +1424,9 @@ export class AppComponent implements OnInit {
|
|
|
1421
1424
|
this.logger.debug('[APP-COMP]-CONVS - INIT CONV CONVS 2', conversations)
|
|
1422
1425
|
this.events.publish('appcompSubscribeToConvs:loadingIsActive', false);
|
|
1423
1426
|
}
|
|
1427
|
+
|
|
1428
|
+
//INIT NOTIFICATION FOR NEW CONVERSATION COUNT
|
|
1429
|
+
this.setNotification();
|
|
1424
1430
|
});
|
|
1425
1431
|
|
|
1426
1432
|
}
|
|
@@ -1637,8 +1643,8 @@ export class AppComponent implements OnInit {
|
|
|
1637
1643
|
this.triggerEvents.triggerOnNewConversationInit(conversation)
|
|
1638
1644
|
}
|
|
1639
1645
|
|
|
1640
|
-
private
|
|
1641
|
-
this.logger.log('[APP-COMP]
|
|
1646
|
+
private setNotification() {
|
|
1647
|
+
this.logger.log('[APP-COMP] setNotification for NEW CONVERSATION');
|
|
1642
1648
|
if(window['AGENTDESKTOP']){
|
|
1643
1649
|
this.logger.log('[APP-COMP] manageNotification AGENTDESKTOP exist', window['AGENTDESKTOP']);
|
|
1644
1650
|
window['AGENTDESKTOP']['TAB'].Badge(this.conversationsHandlerService.countIsNew().toString())
|