@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 +2 -0
- package/package.json +1 -1
- package/src/app/app.component.ts +1 -1
- package/src/app/components/project-item/project-item.component.ts +3 -2
- package/src/app/services/websocket/websocket.service.ts +9 -8
- package/src/chat-config-mqtt-localhost.json +2 -1
- package/src/chat-config-pre.json +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -1150,7 +1150,7 @@ export class AppComponent implements OnInit {
|
|
|
1150
1150
|
|
|
1151
1151
|
subscribeUnservedRequestCount = (unservedRequestCount) => {
|
|
1152
1152
|
if(unservedRequestCount && unservedRequestCount > 0){
|
|
1153
|
-
|
|
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
|
|
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
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
}
|
package/src/chat-config-pre.json
CHANGED
|
@@ -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,
|