@chat21/chat21-ionic 3.0.92-rc.1 → 3.0.93

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
@@ -1,5 +1,10 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.93 in PROD
4
+ - added: goToProfile sidebar-user-detail feature
5
+
6
+ ### 3.0.92 in PROD
7
+
3
8
  ### 3.0.92-rc.1
4
9
  - added: limit parameter to message-attachment component
5
10
  - added: listen to new event related to user presence
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.0.92-rc.1",
4
+ "version": "3.0.93",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -52,8 +52,9 @@
52
52
  <h3>{{ USER_ROLE_LABEL }} </h3>
53
53
 
54
54
  <div class="user-details-view-profile" (click)="goToUserProfile()">
55
- {{translationsMap.get('EditProfileLabel')}}
55
+ {{translationsMap.get('EditProfile')}}
56
56
  </div>
57
+
57
58
  </div>
58
59
 
59
60
  <section class="availability-section">
@@ -918,7 +918,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
918
918
  that.logger.debug('[CONVS-DETAIL] getLeadDetail - selected REQUEST detail', request)
919
919
  if(request.lead && request.lead.email){
920
920
  that.leadInfo = {lead_id: request.lead.lead_id, hasEmail: true, email: request.lead.email, projectId: projectId}
921
- that.presenceService.userIsOnline(projectId);
921
+ that.presenceService.userIsOnline(this.leadInfo.lead_id);
922
922
  }
923
923
  }, (error)=>{
924
924
  this.logger.error('[CONVS-DETAIL] - getLeadDetail - GET REQUEST DETAIL - ERROR ', error)
@@ -1021,26 +1021,30 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
1021
1021
  this.logger.log('[CONVS-DETAIL] - SEND MESSAGE msg: ', msg, ' - messages: ', this.messages, ' - loggedUser: ', this.loggedUser)
1022
1022
 
1023
1023
  if ((msg && msg.trim() !== '') || type !== TYPE_MSG_TEXT) {
1024
+
1025
+ //FIX TEMPORARY
1026
+ this.leadIsOnline = true;
1027
+
1024
1028
  if(this.isEmailEnabled && !this.leadIsOnline && this.leadInfo && this.leadInfo.email && !emailSectionMsg){
1025
1029
  this.logger.log('[CONVS-DETAIL] - SEND MESSAGE --> SENDING EMAIL', msg, this.leadInfo.email)
1026
- this.sendEmail(msg).subscribe(status => {
1027
- if(status){
1028
- //SEND MESSAGE ALSO AS EMAIL
1029
- attributes['channel']= 'offline_'+TYPE_MSG_EMAIL
1030
- }
1031
-
1032
- this.conversationHandlerService.sendMessage(
1033
- msg,
1034
- type,
1035
- metadata,
1036
- this.conversationWith,
1037
- this.conversationWithFullname,
1038
- this.loggedUser.uid,
1039
- fullname,
1040
- this.channelType,
1041
- attributes,
1042
- )
1043
- })
1030
+ // this.sendEmail(msg).subscribe(status => {
1031
+ // if(status){
1032
+ // //SEND MESSAGE ALSO AS EMAIL
1033
+ // attributes['channel']= 'offline_'+TYPE_MSG_EMAIL
1034
+ // }
1035
+
1036
+ // this.conversationHandlerService.sendMessage(
1037
+ // msg,
1038
+ // type,
1039
+ // metadata,
1040
+ // this.conversationWith,
1041
+ // this.conversationWithFullname,
1042
+ // this.loggedUser.uid,
1043
+ // fullname,
1044
+ // this.channelType,
1045
+ // attributes,
1046
+ // )
1047
+ // })
1044
1048
  }else {
1045
1049
  //send STANDARD TEXT MESSAGE
1046
1050
  this.conversationHandlerService.sendMessage(
@@ -21,16 +21,15 @@
21
21
  "APIendpoint": "http://localhost:8004/api",
22
22
  "_log": true
23
23
  },
24
- "apiUrl": "http://localhost:8081/api/",
24
+ "apiUrl": "http://localhost:3000/",
25
25
  "baseImageUrl": "http://localhost:3000/",
26
- "dashboardUrl": "http://localhost:8081/dashboard/",
26
+ "dashboardUrl": "http://localhost:8081/",
27
27
  "testsiteBaseUrl": "http://localhost:8081/widget/assets/twp/index.html",
28
28
  "logLevel": "DEBUG",
29
29
  "authPersistence": "LOCAL",
30
30
  "supportMode": true,
31
31
  "archivedButton": true,
32
32
  "writeToButton": true,
33
- "emailSection":true,
34
33
  "wsUrl": "ws://localhost:8081/ws/",
35
34
  "showInfoMessage":"MEMBER_JOINED_GROUP,TOUCHING_OPERATOR"
36
35
  }
@@ -2,7 +2,7 @@
2
2
  "t2y12PruGU9wUtEGzBJfolMIgK": "CAR:T-PAY:T-ANA:T-ACT:T-APP:T",
3
3
  "chatEngine": "mqtt",
4
4
  "uploadEngine": "native",
5
- "pushEngine":"mqtt",
5
+ "pushEngine":"none",
6
6
  "fileUploadAccept":"*/*",
7
7
  "logLevel": "DEBUG",
8
8
  "remoteTranslationsUrl": "https://console.native.tiledesk.com/api/",
@@ -28,9 +28,9 @@
28
28
  "dashboardUrl": "https://console.native.tiledesk.com/dashboard/",
29
29
  "testsiteBaseUrl":"https://console.native.tiledesk.com/widget/assets/twp/index.html",
30
30
  "authPersistence": "LOCAL",
31
+ "wsUrl":"wss://console.native.tiledesk.com/mqws/ws",
31
32
  "supportMode": true,
32
33
  "archivedButton": true,
33
34
  "writeToButton": true,
34
- "emailSection":false,
35
- "wsUrl":"wss://console.native.tiledesk.com/mqws/ws"
35
+ "emailSection":true
36
36
  }
@@ -3,18 +3,18 @@
3
3
  "chatEngine": "mqtt",
4
4
  "uploadEngine": "native",
5
5
  "pushEngine": "mqtt",
6
- "fileUploadAccept": "/",
6
+ "fileUploadAccept": "*/*",
7
7
  "firebaseConfig": {
8
- "tenant":"tilechat",
9
- "apiKey": "AIzaSyDKfdKrlD7AYcbQ-U-xxgV-b3FUQ4xt7NM",
10
- "authDomain": "tiledesk-prod-v2.firebaseapp.com",
11
- "databaseURL": "https://tiledesk-prod-v2.firebaseio.com/",
12
- "projectId": "tiledesk-prod-v2",
13
- "storageBucket": "tiledesk-prod-v2.appspot.com",
14
- "messagingSenderId": "92907897826",
15
- "appId": "1:92907897826:web:f255664014a7cc14ee2fbb",
16
- "chat21ApiUrl": "'https://us-central1-tiledesk-prod-v2.cloudfunctions.net/",
17
- "vapidKey": "BLhTl-rK33_I4Avgk40T6MR9AGtgAfwDJK_sRbyBQHzIfyztLVsvrxILP6I6KgwagQCQIx-t6lgguEsSt0vULjw"
8
+ "tenant": "tilechat",
9
+ "apiKey": "AIzaSyBv6ILBL_U6VfUs_y8kqPYn-b2mYRauq1k",
10
+ "authDomain": "tiledesk-v3-prod-cf4ff.firebaseapp.com",
11
+ "databaseURL": "https://tiledesk-v3-prod-cf4ff-default-rtdb.europe-west1.firebasedatabase.app",
12
+ "projectId": "tiledesk-v3-prod-cf4ff",
13
+ "storageBucket": "tiledesk-v3-prod-cf4ff.appspot.com",
14
+ "messagingSenderId": "522823349790",
15
+ "appId": "1:522823349790:web:0d4ba710f38b586e1fa00f",
16
+ "chat21ApiUrl": "https://us-central1-tiledesk-prod-v2.cloudfunctions.net",
17
+ "vapidKey": "BH7R85jN8ovJ36J8BKYmfVZsIRWbUj_WXQMs8U3bDN02upqyqy2TpElVQIGMTUyOE2V7UwE11T_sy5yQHg02bjs"
18
18
  },
19
19
  "chat21Config": {
20
20
  "appId": "tilechat",
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "t2y12PruGU9wUtEGzBJfolMIgK": "CAR:T-PAY:T-ANA:T-ACT:T-APP:T-MTT:T",
3
- "globalRemoteJSSrc":"https://console.tiledesk.com/v2/dashboard/scripts/script_2.js, https://console.tiledesk.com/v2/dashboard/scripts/script_2.js",
4
3
  "chatEngine": "firebase",
5
4
  "uploadEngine": "firebase",
6
5
  "pushEngine": "firebase",
@@ -31,6 +30,5 @@
31
30
  "supportMode": true,
32
31
  "archivedButton": true,
33
32
  "writeToButton": true,
34
- "emailSection":true,
35
33
  "wsUrl": "wss://tiledesk-server-pre.herokuapp.com/"
36
34
  }