@vgroup/dialbox 0.5.13 → 0.5.15

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() {
@@ -3979,6 +3978,9 @@ class DialboxComponent {
3979
3978
  // }
3980
3979
  });
3981
3980
  }
3981
+ else {
3982
+ this.isCallInProgress = false;
3983
+ }
3982
3984
  }
3983
3985
  }
3984
3986
  registerDragElement() {
@@ -4204,6 +4206,7 @@ class DialboxComponent {
4204
4206
  // Reset dialed number
4205
4207
  this.dialedNumber = '';
4206
4208
  this.sanitizedNum = '';
4209
+ this.twilioService.device.disconnectAll();
4207
4210
  // Emit end call event
4208
4211
  this.endCallEvent.emit();
4209
4212
  console.log('Call ended successfully');