@chat21/chat21-ionic 3.4.23-rc3 → 3.4.23

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
@@ -8,6 +8,8 @@
8
8
  ### **Copyrigth**:
9
9
  *Tiledesk SRL*
10
10
 
11
+ # 3.4.23 in PROD
12
+
11
13
  # 3.4.23-rc3
12
14
  - **added**: managed firstname and not fullname in message sent by agent
13
15
 
@@ -21,24 +23,6 @@
21
23
  # 3.4.22 in PROD
22
24
  - **added**: managed allowed_upload_extentions from project settings
23
25
 
24
- # 3.4.21-rc6
25
- - **added**: managed allowed_upload_extentions from project settings
26
-
27
- # 3.4.21-rc5
28
- - **added**: setConversation as read when agent click on it
29
-
30
- # 3.4.21-rc4
31
- - **added**: ability to init and decrement new conversation count badge
32
-
33
- # 3.4.21-rc3
34
- - **changed**: badge notification for agentDesktop
35
-
36
- # 3.4.21-rc2
37
- - **added**: count in newConversation handler event
38
-
39
- # 3.4.21-rc1
40
- - **added**: implement badge notification for agentDesktop sw when new conversation is assigned to logged agent
41
-
42
26
  # 3.4.21 in PROD
43
27
 
44
28
  # 3.4.20 in PROD
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.4.23-rc3",
4
+ "version": "3.4.23",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -168,7 +168,6 @@ export class AppComponent implements OnInit {
168
168
  }, { capture: true });
169
169
  }
170
170
 
171
-
172
171
  listenChatAlreadyOpenWithoutParamsInMobileMode() {
173
172
  this.events.subscribe('noparams:mobile', (isAlreadyOpenInMobileMode) => {
174
173
  // console.log('[APP-COMP] Chat is Already Open In Mobile Mode ', isAlreadyOpenInMobileMode)
@@ -333,7 +332,7 @@ export class AppComponent implements OnInit {
333
332
 
334
333
  listenToPostMsgs() {
335
334
  window.addEventListener("message", (event) => {
336
- // this.logger.log("[APP-COMP] message event ", event);
335
+ this.logger.log("[APP-COMP] message event ", event);
337
336
 
338
337
  if (event && event.data && event.data.action && event.data.parameter) {
339
338
  if (event.data.action === 'openJoinConversationModal') {
@@ -1111,7 +1110,6 @@ export class AppComponent implements OnInit {
1111
1110
  if (conversation && conversation.is_new === true && this.isInitialized) {
1112
1111
  this.manageTabNotification('conv_added', conversation.sound)
1113
1112
  this.manageEventNewConversation(conversation)
1114
- this.setNotification();
1115
1113
  }
1116
1114
  if(conversation) this.updateConversationsOnStorage()
1117
1115
  });
@@ -1345,10 +1343,7 @@ export class AppComponent implements OnInit {
1345
1343
 
1346
1344
  subscribeConversationSelected= (conversation: ConversationModel) => {
1347
1345
  if(conversation && conversation.is_new){
1348
- this.audio_NewConv.pause();
1349
- this.conversationsHandlerService.setConversationRead(conversation.uid)
1350
- //UPDATE NOTIFICATION FOR NEW CONVERSATION COUNT
1351
- this.setNotification();
1346
+ this.audio_NewConv.pause()
1352
1347
  }
1353
1348
  }
1354
1349
 
@@ -1424,9 +1419,6 @@ export class AppComponent implements OnInit {
1424
1419
  this.logger.debug('[APP-COMP]-CONVS - INIT CONV CONVS 2', conversations)
1425
1420
  this.events.publish('appcompSubscribeToConvs:loadingIsActive', false);
1426
1421
  }
1427
-
1428
- //INIT NOTIFICATION FOR NEW CONVERSATION COUNT
1429
- this.setNotification();
1430
1422
  });
1431
1423
 
1432
1424
  }
@@ -1643,14 +1635,6 @@ export class AppComponent implements OnInit {
1643
1635
  this.triggerEvents.triggerOnNewConversationInit(conversation)
1644
1636
  }
1645
1637
 
1646
- private setNotification() {
1647
- this.logger.log('[APP-COMP] setNotification for NEW CONVERSATION');
1648
- if(window['AGENTDESKTOP']){
1649
- this.logger.log('[APP-COMP] manageNotification AGENTDESKTOP exist', window['AGENTDESKTOP']);
1650
- window['AGENTDESKTOP']['TAB'].Badge(this.conversationsHandlerService.countIsNew().toString())
1651
- }
1652
- }
1653
-
1654
1638
 
1655
1639
  @HostListener('document:visibilitychange', [])
1656
1640
  visibilitychange() {