@chat21/chat21-ionic 3.4.8 → 3.4.9

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.4.9 in PROD
4
+
5
+ ### 3.4.9-rc.1
6
+ - bug-fixed: close conversation also in case of tiledesk error
7
+
3
8
  ### 3.4.8 in PROD
4
9
 
5
10
  ### 3.4.8-rc.2
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.8",
4
+ "version": "3.4.9",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -334,6 +334,12 @@ export class AppComponent implements OnInit {
334
334
  this.presentAlertConfirmJoinRequest(event.data.parameter, event.data.calledBy)
335
335
  }
336
336
  }
337
+
338
+ if (event && event.data && event.data.action && event.data.parameter) {
339
+ if (event.data.action === 'resolveConversation') {
340
+ this.conversationsHandlerService.archiveConversation(event.data.patameter)
341
+ }
342
+ }
337
343
  // if (event && event.data && event.data.action && event.data.parameter) {
338
344
  // if (event.data.action === 'hasArchived') {
339
345
  // var iframeWin = <HTMLIFrameElement>document.getElementById("unassigned-convs-iframe")
@@ -1090,7 +1096,6 @@ export class AppComponent implements OnInit {
1090
1096
  this.logger.log('initialize FROM [APP-COMP] - [APP-COMP] ***** BSAuthStateChanged *** complete *** ')
1091
1097
  });
1092
1098
 
1093
-
1094
1099
  this.events.subscribe('uidConvSelected:changed', this.subscribeChangedConversationSelected);
1095
1100
  this.events.subscribe('profileInfoButtonClick:logout', this.subscribeProfileInfoButtonLogOut);
1096
1101
  this.events.subscribe('unservedRequest:count', this.subscribeUnservedRequestCount)
@@ -1228,9 +1233,9 @@ export class AppComponent implements OnInit {
1228
1233
  }
1229
1234
 
1230
1235
  goToDashboardLogin(){
1231
- let DASHBOARD_URL = this.appConfigProvider.getConfig().dashboardUrl + '#/login'
1232
- const myWindow = window.open(DASHBOARD_URL, '_self');
1233
- myWindow.focus();
1236
+ // let DASHBOARD_URL = this.appConfigProvider.getConfig().dashboardUrl + '#/login'
1237
+ // const myWindow = window.open(DASHBOARD_URL, '_self');
1238
+ // myWindow.focus();
1234
1239
  }
1235
1240
 
1236
1241
 
@@ -1047,6 +1047,7 @@ export class ConversationListPage implements OnInit {
1047
1047
  if (error.error.msg === 'you dont belong to the project.') {
1048
1048
  this.archiveActionNotAllowed = true
1049
1049
  }
1050
+ this.conversationsHandlerService.archiveConversation(conversationId)
1050
1051
  },() => {
1051
1052
  this.logger.log('[CONVS-LIST-PAGE] - onCloseConversation closeSupportGroup * COMPLETE *')
1052
1053
  this.logger.log('[CONVS-LIST-PAGE] - onCloseConversation (closeSupportGroup) ID ',this.uidConvSelected, conversationId)
@@ -278,7 +278,7 @@ export class FirebaseConversationsHandler extends ConversationsHandlerService {
278
278
  // this.conversations.splice(index, 1);
279
279
  // fare chiamata delete per rimuoverle la conversazione da remoto
280
280
  this.deleteConversation(conversationId, function (response) {
281
- that.logger.debug('[FIREBASEConversationsHandlerSERVICE] ARCHIVE-CONV', response)
281
+ that.logger.debug('[FIREBASEConversationsHandlerSERVICE] ARCHIVE-CONV', response, index)
282
282
  if (response === 'success') {
283
283
  if (index > -1) {
284
284
  that.conversations.splice(index, 1);