@vgroup/dialbox 0.4.71 → 0.4.73

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.
@@ -1890,18 +1890,18 @@ class CallProgressComponent {
1890
1890
  else if (index != -1) {
1891
1891
  this.currentCallList[index] = Object.assign(Object.assign({}, res), { img: 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) });
1892
1892
  }
1893
- if (this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
1894
- setTimeout(() => {
1895
- if (this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
1896
- this.onholdOrUnholdParticipant({
1897
- participantId: [this.currentCallList[0].participantId],
1898
- conferenceId: this.conferenceId,
1899
- hold: false,
1900
- conference: this.currentCallList[0].isConference
1901
- });
1902
- }
1903
- }, 1000);
1904
- }
1893
+ // if(this.currentCallList.length == 1 && this.currentCallList[0].isHold){
1894
+ // setTimeout(() => {
1895
+ // if(this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
1896
+ // this.onholdOrUnholdParticipant({
1897
+ // participantId: [this.currentCallList[0].participantId],
1898
+ // conferenceId: this.conferenceId,
1899
+ // hold: false,
1900
+ // conference: this.currentCallList[0].isConference
1901
+ // });
1902
+ // }
1903
+ // }, 1000);
1904
+ // }
1905
1905
  }
1906
1906
  else {
1907
1907
  this.currentCallList.push(Object.assign(Object.assign({}, res), { img: 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) }));
@@ -2084,7 +2084,7 @@ class CallProgressComponent {
2084
2084
  participantId: [c.participantId],
2085
2085
  conferenceId: this.conferenceId,
2086
2086
  hold: !c.hold,
2087
- conference: true
2087
+ conference: c.isConference
2088
2088
  });
2089
2089
  c.hold = !c.hold;
2090
2090
  this.cdr.detectChanges();
@@ -4340,10 +4340,11 @@ class DialboxComponent {
4340
4340
  const res = yield this.twilioService.getToNumber(dialedNumber, ipAddress.address.countryCode).toPromise();
4341
4341
  if (res.status == 200) {
4342
4342
  console.log(res, 'getToNumber');
4343
- this.toastTimeout = res.timeInterval * 1000;
4344
- yield this.showNumberToast(res);
4343
+ this.showNumberToast(res);
4345
4344
  }
4345
+ return res;
4346
4346
  }
4347
+ return null;
4347
4348
  });
4348
4349
  }
4349
4350
  isAlertEnable() {
@@ -4475,9 +4476,9 @@ class DialboxComponent {
4475
4476
  this.endCall();
4476
4477
  }
4477
4478
  // Clear any timeouts or intervals if they exist
4478
- if (this.toastTimeout) {
4479
- clearTimeout(this.toastTimeout);
4480
- }
4479
+ // if (this.toastTimeout) {
4480
+ // clearTimeout(this.toastTimeout);
4481
+ // }
4481
4482
  console.log('C2cDialpadComponent cleanup complete');
4482
4483
  }
4483
4484
  catch (error) {