@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.
@@ -1926,18 +1926,18 @@ class CallProgressComponent {
1926
1926
  time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()),
1927
1927
  };
1928
1928
  }
1929
- if (this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
1930
- setTimeout(() => {
1931
- if (this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
1932
- this.onholdOrUnholdParticipant({
1933
- participantId: [this.currentCallList[0].participantId],
1934
- conferenceId: this.conferenceId,
1935
- hold: false,
1936
- conference: this.currentCallList[0].isConference
1937
- });
1938
- }
1939
- }, 1000);
1940
- }
1929
+ // if(this.currentCallList.length == 1 && this.currentCallList[0].isHold){
1930
+ // setTimeout(() => {
1931
+ // if(this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
1932
+ // this.onholdOrUnholdParticipant({
1933
+ // participantId: [this.currentCallList[0].participantId],
1934
+ // conferenceId: this.conferenceId,
1935
+ // hold: false,
1936
+ // conference: this.currentCallList[0].isConference
1937
+ // });
1938
+ // }
1939
+ // }, 1000);
1940
+ // }
1941
1941
  }
1942
1942
  else {
1943
1943
  this.currentCallList.push({
@@ -2129,7 +2129,7 @@ class CallProgressComponent {
2129
2129
  participantId: [c.participantId],
2130
2130
  conferenceId: this.conferenceId,
2131
2131
  hold: !c.hold,
2132
- conference: true
2132
+ conference: c.isConference
2133
2133
  });
2134
2134
  c.hold = !c.hold;
2135
2135
  this.cdr.detectChanges();
@@ -4382,10 +4382,11 @@ class DialboxComponent {
4382
4382
  const res = await this.twilioService.getToNumber(dialedNumber, ipAddress.address.countryCode).toPromise();
4383
4383
  if (res.status == 200) {
4384
4384
  console.log(res, 'getToNumber');
4385
- this.toastTimeout = res.timeInterval * 1000;
4386
- await this.showNumberToast(res);
4385
+ this.showNumberToast(res);
4387
4386
  }
4387
+ return res;
4388
4388
  }
4389
+ return null;
4389
4390
  }
4390
4391
  isAlertEnable() {
4391
4392
  return localStorage.getItem('isAlertEnable');
@@ -4514,9 +4515,9 @@ class DialboxComponent {
4514
4515
  this.endCall();
4515
4516
  }
4516
4517
  // Clear any timeouts or intervals if they exist
4517
- if (this.toastTimeout) {
4518
- clearTimeout(this.toastTimeout);
4519
- }
4518
+ // if (this.toastTimeout) {
4519
+ // clearTimeout(this.toastTimeout);
4520
+ // }
4520
4521
  console.log('C2cDialpadComponent cleanup complete');
4521
4522
  }
4522
4523
  catch (error) {