@vgroup/dialbox 0.7.81 → 0.7.83

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.
@@ -1878,6 +1878,9 @@ class TwilioService {
1878
1878
  if (id != null && this.incomingCallsMap.has(id)) {
1879
1879
  return this.incomingCallsMap.get(id);
1880
1880
  }
1881
+ if (!this.incomingCallDetail) {
1882
+ return null;
1883
+ }
1881
1884
  return this.incomingCallDetail.parameters?.['CallSid'] == id ? this.incomingCallDetail : null;
1882
1885
  }
1883
1886
  prepareDevice2ForIncomingCall() {
@@ -3344,6 +3347,12 @@ class CallProgressComponent {
3344
3347
  toggleKeypad() {
3345
3348
  this.showKeypad = !this.showKeypad;
3346
3349
  this.callInput = '';
3350
+ if (this.showKeypad) {
3351
+ this.cdr.detectChanges();
3352
+ setTimeout(() => {
3353
+ document.getElementById('call-input')?.focus();
3354
+ }, 0);
3355
+ }
3347
3356
  }
3348
3357
  // Switch that silences (or restores) the incoming ring while a call is in progress.
3349
3358
  toggleMuteIncomingCall() {
@@ -4027,6 +4036,7 @@ class CallProgressComponent {
4027
4036
  }
4028
4037
  }
4029
4038
  onCallInputEnter(ev) {
4039
+ console.log(ev);
4030
4040
  try {
4031
4041
  let selfCall = this.newIncomingCallsList.find((res) => res?.conferenceId == this.currentCall?.conferenceId)?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.host)) && !resData?.isLeft);
4032
4042
  let device = this.twilioService.getIncomingCallById(selfCall?.callSid || selfCall?.clientSid);