@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.
@@ -1931,21 +1931,21 @@ class CallProgressComponent {
1931
1931
  }
1932
1932
  else if (!((_j = this.newIncomingCallsList) === null || _j === void 0 ? void 0 : _j.length)) {
1933
1933
  console.log('test null');
1934
- if (this.isRinging) {
1935
- this.incomeingCallSocketService.pause();
1936
- }
1937
1934
  this.isRinging = false;
1938
1935
  this.isConcurrentIncoming = false;
1939
1936
  this.incomingCallDiv = false;
1940
1937
  this.currentCallList = [];
1941
1938
  this.currentCall = {};
1939
+ this.cdr.detectChanges();
1940
+ if (this.isRinging) {
1941
+ this.incomeingCallSocketService.pause();
1942
+ }
1942
1943
  this.isRinging = false;
1943
1944
  this.isCallInProgress = false;
1944
1945
  this.isConferenceCallHold = false;
1945
- this.stopTimer();
1946
1946
  this.call.disconnect();
1947
+ this.stopTimer();
1947
1948
  this.cdr.detectChanges();
1948
- // this.twilioService.device.disconnectAll()
1949
1949
  this.endCallEvent.emit();
1950
1950
  }
1951
1951
  }
@@ -2844,7 +2844,6 @@ class CallProgressComponent {
2844
2844
  }
2845
2845
  isMergeCallAllowed() {
2846
2846
  let mergeCallList = this.currentCallList.filter((res) => res.conferenceId == this.currentCall.conferenceId);
2847
- console.log('mergeCallList', mergeCallList);
2848
2847
  return mergeCallList.length <= 1;
2849
2848
  }
2850
2849
  mergeCalls() {
@@ -3947,6 +3946,9 @@ class DialboxComponent {
3947
3946
  // }
3948
3947
  });
3949
3948
  }
3949
+ else {
3950
+ this.isCallInProgress = false;
3951
+ }
3950
3952
  }
3951
3953
  }
3952
3954
  registerDragElement() {
@@ -4173,6 +4175,7 @@ class DialboxComponent {
4173
4175
  // Reset dialed number
4174
4176
  this.dialedNumber = '';
4175
4177
  this.sanitizedNum = '';
4178
+ this.twilioService.device.disconnectAll();
4176
4179
  // Emit end call event
4177
4180
  this.endCallEvent.emit();
4178
4181
  console.log('Call ended successfully');