@vgroup/dialbox 0.5.13 → 0.5.14

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.
@@ -1979,21 +1979,21 @@ class CallProgressComponent {
1979
1979
  }
1980
1980
  else if (!this.newIncomingCallsList?.length) {
1981
1981
  console.log('test null');
1982
- if (this.isRinging) {
1983
- this.incomeingCallSocketService.pause();
1984
- }
1985
1982
  this.isRinging = false;
1986
1983
  this.isConcurrentIncoming = false;
1987
1984
  this.incomingCallDiv = false;
1988
1985
  this.currentCallList = [];
1989
1986
  this.currentCall = {};
1987
+ this.cdr.detectChanges();
1988
+ if (this.isRinging) {
1989
+ this.incomeingCallSocketService.pause();
1990
+ }
1990
1991
  this.isRinging = false;
1991
1992
  this.isCallInProgress = false;
1992
1993
  this.isConferenceCallHold = false;
1993
- this.stopTimer();
1994
1994
  this.call.disconnect();
1995
+ this.stopTimer();
1995
1996
  this.cdr.detectChanges();
1996
- // this.twilioService.device.disconnectAll()
1997
1997
  this.endCallEvent.emit();
1998
1998
  }
1999
1999
  }
@@ -2887,7 +2887,6 @@ class CallProgressComponent {
2887
2887
  }
2888
2888
  isMergeCallAllowed() {
2889
2889
  let mergeCallList = this.currentCallList.filter((res) => res.conferenceId == this.currentCall.conferenceId);
2890
- console.log('mergeCallList', mergeCallList);
2891
2890
  return mergeCallList.length <= 1;
2892
2891
  }
2893
2892
  async mergeCalls() {
@@ -4204,6 +4203,7 @@ class DialboxComponent {
4204
4203
  // Reset dialed number
4205
4204
  this.dialedNumber = '';
4206
4205
  this.sanitizedNum = '';
4206
+ this.twilioService.device.disconnectAll();
4207
4207
  // Emit end call event
4208
4208
  this.endCallEvent.emit();
4209
4209
  console.log('Call ended successfully');