@chat21/chat21-ionic 3.0.68-rc.2 → 3.0.68-rc.3
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
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -863,6 +863,7 @@ export class AppComponent implements OnInit {
|
|
|
863
863
|
if(sound_status && sound_status !== 'undefined'){
|
|
864
864
|
this.isSoundEnabled = sound_status === 'enabled'? true: false
|
|
865
865
|
}
|
|
866
|
+
// this.logger.debug('[APP-COMP] manageTabNotification can saund?', this.isInitialized, this.isSoundEnabled)
|
|
866
867
|
if(this.isInitialized && this.isSoundEnabled) this.soundMessage()
|
|
867
868
|
}
|
|
868
869
|
|
|
@@ -278,11 +278,9 @@ export class ProjectItemComponent implements OnInit {
|
|
|
278
278
|
available = !available
|
|
279
279
|
this.logger.log('[PROJECT-ITEM] - changeAvailabilityState projectid', projectid, ' available: ', available);
|
|
280
280
|
|
|
281
|
-
this.wsService.updateCurrentUserAvailability(this.tiledeskToken, projectid, available)
|
|
282
|
-
.subscribe((projectUser: any) => {
|
|
281
|
+
this.wsService.updateCurrentUserAvailability(this.tiledeskToken, projectid, available).subscribe((projectUser: any) => {
|
|
283
282
|
|
|
284
283
|
this.logger.log('[PROJECT-ITEM] - PROJECT-USER UPDATED ', projectUser)
|
|
285
|
-
|
|
286
284
|
// NOTIFY TO THE USER SERVICE WHEN THE AVAILABLE / UNAVAILABLE BUTTON IS CLICKED
|
|
287
285
|
// this.usersService.availability_btn_clicked(true)
|
|
288
286
|
|
|
@@ -312,8 +310,11 @@ export class ProjectItemComponent implements OnInit {
|
|
|
312
310
|
}
|
|
313
311
|
}
|
|
314
312
|
});
|
|
315
|
-
|
|
316
|
-
|
|
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;
|
|
316
|
+
this.events.publish('unservedRequest:count', this.unservedRequestCount)
|
|
317
|
+
}
|
|
317
318
|
}
|
|
318
319
|
}, error => {
|
|
319
320
|
this.logger.error('[PROJECT-ITEM] UNSERVED REQUEST COUNT * error * ', error)
|