@chat21/chat21-ionic 3.0.75-rc.2 → 3.0.75

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,7 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.75 in PROD
4
+
3
5
  ### 3.0.75-rc.2
4
6
  - bug-fixed: unserved request count not updated correctly after a request is assigned
5
7
 
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.75-rc.2",
4
+ "version": "3.0.75",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -1150,7 +1150,7 @@ export class AppComponent implements OnInit {
1150
1150
 
1151
1151
  subscribeUnservedRequestCount = (unservedRequestCount) => {
1152
1152
  if(unservedRequestCount && unservedRequestCount > 0){
1153
- console.log("hasToSoundUnservedRequestCount::::", this.hasToSoundUnservedRequestCount, this.isInitialized)
1153
+ this.logger.debug("hasToSoundUnservedRequestCount::::", this.hasToSoundUnservedRequestCount, this.isInitialized)
1154
1154
  if(this.hasToSoundUnservedRequestCount){
1155
1155
  this.manageTabNotification(unservedRequestCount) //sound and alternate title
1156
1156
  } else {
@@ -311,10 +311,11 @@ export class ProjectItemComponent implements OnInit {
311
311
  }
312
312
  });
313
313
  //not sound if unservedRequest is already chached and web-sk is closed and restart again
314
- if(this.unservedRequestCount !== count){
315
- this.unservedRequestCount = count;
314
+ if(count > this.unservedRequestCount ){
316
315
  this.events.publish('unservedRequest:count', this.unservedRequestCount)
317
316
  }
317
+ this.unservedRequestCount = count;
318
+
318
319
  }
319
320
  }, error => {
320
321
  this.logger.error('[PROJECT-ITEM] UNSERVED REQUEST COUNT * error * ', error)
@@ -202,14 +202,14 @@ export class WebsocketService {
202
202
  self.logger.log("[WS-SERV] CHAT - CONVS - ON-DATA - notification ", notification);
203
203
 
204
204
  // console.log("[WS-SERV] CHAT - CONVS - ON-DATA - DATA notification > event > method ", notification.event.method);
205
- if (notification.event.method === 'CREATE') {
206
- self.wsRequestsList = [];
207
- self.wsRequestsList.push(data)
208
- self.logger.log("[WS-SERV] CHAT - CONVS - ON-DATA - DATA wsRequestsList ", self.wsRequestsList);
209
- if (self.wsRequestsList) {
210
- self.wsRequestsList$.next(self.wsRequestsList);
211
- }
212
- }
205
+ // if (notification.event.method === 'CREATE') {
206
+ // self.wsRequestsList = [];
207
+ // self.wsRequestsList.push(data)
208
+ // self.logger.log("[WS-SERV] CHAT - CONVS - ON-DATA - DATA wsRequestsList ", self.wsRequestsList);
209
+ // if (self.wsRequestsList) {
210
+ // self.wsRequestsList$.next(self.wsRequestsList);
211
+ // }
212
+ // }
213
213
  }
214
214
  );
215
215
  }
@@ -284,6 +284,7 @@ export class WebsocketService {
284
284
  this.wsRequestsList$.next(this.wsRequestsList);
285
285
  this.logger.log("[WS-SERV] - ON-UPATE CONVS LIST ", this.wsRequestsList);
286
286
  }
287
+
287
288
  }
288
289
  }
289
290
  }
@@ -29,5 +29,6 @@
29
29
  "supportMode": true,
30
30
  "archivedButton": true,
31
31
  "writeToButton": true,
32
- "wsUrl": "/ws/"
32
+ "wsUrl": "/ws/",
33
+ "showInfoMessage":"MEMBER_JOINED_GROUP,TOUCHING_OPERATOR"
33
34
  }
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "apiUrl": "https://tiledesk-server-pre.herokuapp.com/",
25
25
  "baseImageUrl": "https://firebasestorage.googleapis.com/v0/b/",
26
- "dashboardUrl": "/dashboard/",
26
+ "dashboardUrl": "https://support-pre.tiledesk.com/dashboard/",
27
27
  "logLevel": "DEBUG",
28
28
  "authPersistence": "LOCAL",
29
29
  "supportMode": true,