@hmcts/ccd-case-ui-toolkit 7.3.53-exui-2906-activity-tracker-12 → 7.3.53-exui-2906-activity-tracker-13

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.
@@ -2376,7 +2376,7 @@ class ActivitySocketService {
2376
2376
  }
2377
2377
  // Emits a stopAll event for multiple cases and clears any matching view marker.
2378
2378
  stopViewingCases(caseIds) {
2379
- if (!caseIds || !caseIds.length) {
2379
+ if (!caseIds?.length) {
2380
2380
  return;
2381
2381
  }
2382
2382
  if (!this.socket || !this.connected.value) {
@@ -36453,7 +36453,7 @@ class CaseEventTriggerComponent {
36453
36453
  this.socketConnectSub = undefined;
36454
36454
  if (ActivitySocketService.SOCKET_MODES.includes(mode) && !isSolicitorUser(this.sessionStorageService)) {
36455
36455
  this.socketConnectSub = this.activitySocketService.connected
36456
- .pipe(filter(connected => connected), take(1))
36456
+ .pipe(distinctUntilChanged(), filter(connected => connected))
36457
36457
  .subscribe(() => this.activitySocketService.editCase(this.caseDetails.case_id, true));
36458
36458
  }
36459
36459
  else if (mode === MODES.polling) {
@@ -37360,7 +37360,7 @@ class CaseFullAccessViewComponent {
37360
37360
  this.socketConnectSub = undefined;
37361
37361
  if (ActivitySocketService.SOCKET_MODES.includes(mode) && !isSolicitorUser(this.sessionStorageService)) {
37362
37362
  this.socketConnectSub = this.activitySocketService.connected
37363
- .pipe(filter(connected => connected), take(1))
37363
+ .pipe(distinctUntilChanged(), filter(connected => connected))
37364
37364
  .subscribe(() => this.activitySocketService.viewCase(this.caseDetails.case_id, true));
37365
37365
  }
37366
37366
  else if (mode === MODES.polling) {