@vgroup/dialbox 0.6.16 → 0.6.18

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.
@@ -2111,7 +2111,7 @@ class CallProgressComponent {
2111
2111
  onEndCall(c, isAllCallEnd, isContect) {
2112
2112
  var _a, _b;
2113
2113
  return __awaiter(this, void 0, void 0, function* () {
2114
- if (!(c === null || c === void 0 ? void 0 : c.isAcceptCall) && !isContect) {
2114
+ if (!(c === null || c === void 0 ? void 0 : c.isAcceptCall) && !isContect && !isAllCallEnd) {
2115
2115
  let index = this.currentCallList.findIndex((res) => res.participantId == c.participantId);
2116
2116
  yield this.extensionService.getRemoveParticipants((_a = this.currentCallList[index]) === null || _a === void 0 ? void 0 : _a.participantId, ((_b = this.currentCallList[index]) === null || _b === void 0 ? void 0 : _b.conferenceId) || 'no').subscribe((res) => {
2117
2117
  var _a;
@@ -2124,7 +2124,7 @@ class CallProgressComponent {
2124
2124
  return false;
2125
2125
  }
2126
2126
  let participantId = isAllCallEnd ? 'all' : c.participantId;
2127
- let conferenceId = isAllCallEnd ? 'all' : c.conferenceId || this.currentCall.conferenceId;
2127
+ let conferenceId = c.conferenceId || this.currentCall.conferenceId;
2128
2128
  let res = yield this.getRemoveParticipants(participantId, conferenceId);
2129
2129
  if ((res === null || res === void 0 ? void 0 : res.status) == 201 && (res === null || res === void 0 ? void 0 : res.message) == 'participant already left') {
2130
2130
  this.cdr.detectChanges();