@vgroup/dialbox 0.7.57 → 0.7.58

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.
@@ -2803,7 +2803,7 @@ class CallProgressComponent {
2803
2803
  yield this.connectToDevice(callAuthId, callData, tokenData);
2804
2804
  yield this.pollCallStatus(callAuthId);
2805
2805
  setTimeout(() => __awaiter(this, void 0, void 0, function* () {
2806
- var _c, _d, _e, _f, _g;
2806
+ var _c, _d, _e, _f, _g, _h;
2807
2807
  try {
2808
2808
  let addClientParticipantRes = this.addClientParticipant({
2809
2809
  from: callData === null || callData === void 0 ? void 0 : callData.from,
@@ -2816,24 +2816,24 @@ class CallProgressComponent {
2816
2816
  deviceId: this.deviceId,
2817
2817
  clientSid: (_d = this.call) === null || _d === void 0 ? void 0 : _d.parameters['CallSid']
2818
2818
  });
2819
- if ((addClientParticipantRes === null || addClientParticipantRes === void 0 ? void 0 : addClientParticipantRes.status) != 200) {
2820
- swal("Error", response === null || response === void 0 ? void 0 : response.message.join("<br/>"), "error");
2819
+ if ((addClientParticipantRes === null || addClientParticipantRes === void 0 ? void 0 : addClientParticipantRes.status) != 200 && ((_e = response === null || response === void 0 ? void 0 : response.message) === null || _e === void 0 ? void 0 : _e.length)) {
2820
+ swal("Error", response.message.join("<br/>"), "error");
2821
2821
  }
2822
2822
  this.addRes = yield this.addParticipantToCall({
2823
2823
  from: callData === null || callData === void 0 ? void 0 : callData.from,
2824
2824
  route: "OUTGOING",
2825
2825
  participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
2826
- conferenceId: (_e = response === null || response === void 0 ? void 0 : response.callauth) === null || _e === void 0 ? void 0 : _e.id,
2826
+ conferenceId: (_f = response === null || response === void 0 ? void 0 : response.callauth) === null || _f === void 0 ? void 0 : _f.id,
2827
2827
  userId: this.userId || localStorage.getItem('userId'),
2828
2828
  proxy: '',
2829
2829
  countrycode: '',
2830
2830
  deviceId: this.deviceId,
2831
2831
  });
2832
2832
  if (isNewConference) {
2833
- this.conferenceCallIDForParticipantList = (_f = response === null || response === void 0 ? void 0 : response.callauth) === null || _f === void 0 ? void 0 : _f.id;
2833
+ this.conferenceCallIDForParticipantList = (_g = response === null || response === void 0 ? void 0 : response.callauth) === null || _g === void 0 ? void 0 : _g.id;
2834
2834
  }
2835
2835
  this.isNewAddedCall = false;
2836
- if (((_g = this.newIncomingCallsList) === null || _g === void 0 ? void 0 : _g.length) > 1) {
2836
+ if (((_h = this.newIncomingCallsList) === null || _h === void 0 ? void 0 : _h.length) > 1) {
2837
2837
  this.extensionService.isLoadershow.next(false);
2838
2838
  this.isLoadershown.emit(false);
2839
2839
  }