@chat21/chat21-ionic 3.4.23-rc2 → 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,11 @@
8
8
  ### **Copyrigth**:
9
9
  *Tiledesk SRL*
10
10
 
11
+ # 3.4.23 in PROD
12
+
13
+ # 3.4.23-rc3
14
+ - **added**: managed firstname and not fullname in message sent by agent
15
+
11
16
  # 3.4.23-rc2
12
17
  - **bug-fixed**: cannot upload xlsx files
13
18
 
@@ -18,24 +23,6 @@
18
23
  # 3.4.22 in PROD
19
24
  - **added**: managed allowed_upload_extentions from project settings
20
25
 
21
- # 3.4.21-rc6
22
- - **added**: managed allowed_upload_extentions from project settings
23
-
24
- # 3.4.21-rc5
25
- - **added**: setConversation as read when agent click on it
26
-
27
- # 3.4.21-rc4
28
- - **added**: ability to init and decrement new conversation count badge
29
-
30
- # 3.4.21-rc3
31
- - **changed**: badge notification for agentDesktop
32
-
33
- # 3.4.21-rc2
34
- - **added**: count in newConversation handler event
35
-
36
- # 3.4.21-rc1
37
- - **added**: implement badge notification for agentDesktop sw when new conversation is assigned to logged agent
38
-
39
26
  # 3.4.21 in PROD
40
27
 
41
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-rc2",
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() {
@@ -1099,9 +1099,9 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1099
1099
  this.logger.log('[CONVS-DETAIL] - SEND MESSAGE - type: ', type)
1100
1100
  this.logger.log('[CONVS-DETAIL] - SEND MESSAGE - metadata: ', metadata)
1101
1101
  this.logger.log('[CONVS-DETAIL] - SEND MESSAGE - additional_attributes: ', additional_attributes)
1102
- let fullname = this.loggedUser.uid
1102
+ let firstname = this.loggedUser.uid
1103
1103
  if (this.loggedUser.fullname) {
1104
- fullname = this.loggedUser.fullname
1104
+ firstname = this.loggedUser.firstname
1105
1105
  }
1106
1106
 
1107
1107
  const g_attributes = this.setAttributes()
@@ -1165,7 +1165,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1165
1165
  this.conversationWith,
1166
1166
  this.conversationWithFullname,
1167
1167
  this.loggedUser.uid,
1168
- fullname,
1168
+ firstname,
1169
1169
  this.channelType,
1170
1170
  attributes,
1171
1171
  )
@@ -1179,7 +1179,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1179
1179
  this.conversationWith,
1180
1180
  this.conversationWithFullname,
1181
1181
  this.loggedUser.uid,
1182
- fullname,
1182
+ firstname,
1183
1183
  this.channelType,
1184
1184
  attributes,
1185
1185
  )