@vgroup/dialbox 0.1.84 → 0.1.85

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.
@@ -2176,10 +2176,13 @@ class CallProgressComponent {
2176
2176
  this.cdr.detectChanges();
2177
2177
  }
2178
2178
  else {
2179
- // incoming call rejected
2180
- this.endCallEvent.emit();
2179
+ // incoming call rejected or auto-cancelled
2181
2180
  this.isConcurrentIncoming = false;
2182
2181
  this.incomingCallDiv = false;
2182
+ // If there is NO active call, then propagate end. Otherwise keep ongoing UI.
2183
+ if (!this.call || this.call.status() !== 'open') {
2184
+ this.endCallEvent.emit();
2185
+ }
2183
2186
  }
2184
2187
  }
2185
2188
  clearInputs() {