@vgroup/dialbox 0.3.70 → 0.3.71

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.
@@ -1785,7 +1785,6 @@ class CallProgressComponent {
1785
1785
  }
1786
1786
  }
1787
1787
  ngOnChanges(changes) {
1788
- console.log('Call Progress Component ngOnChanges');
1789
1788
  if (changes['callData']) {
1790
1789
  if (changes['callData'].currentValue?.isIncomingCall) {
1791
1790
  this.incomingCallDiv = true;
@@ -1813,12 +1812,17 @@ class CallProgressComponent {
1813
1812
  this.incomingCallDiv = false;
1814
1813
  this.cdr.detectChanges();
1815
1814
  this.currentCallList = this.currentCallList.filter((item) => !item.isIncomingCall);
1815
+ if (this.currentCallList.length == 0) {
1816
+ this.isCallInProgress = false;
1817
+ this.currentCall = {};
1818
+ }
1816
1819
  }
1817
1820
  }
1818
1821
  catch (e) {
1819
1822
  console.log(e);
1820
1823
  }
1821
1824
  }
1825
+ console.log('currentCallList', this.currentCallList);
1822
1826
  }
1823
1827
  ngAfterViewInit() {
1824
1828
  // this.isRecording = false;
@@ -1876,16 +1880,15 @@ class CallProgressComponent {
1876
1880
  participantNumber: callData?.phone,
1877
1881
  conferenceId: this.conferenceId
1878
1882
  });
1879
- this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false };
1883
+ this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
1880
1884
  this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
1881
1885
  console.log('test111111');
1882
1886
  this.currentCall = { ...this.callData, img: callData.img || 'assets/images/user.jpg' };
1883
1887
  // Initialize isAcceptCall based on current call state to ensure UI renders if already connected
1884
- const isConnected = typeof this.call?.status === 'function' ? (this.call.status() === 'open') : false;
1885
1888
  this.currentCallList.push({
1886
1889
  ...this.callData,
1887
1890
  img: callData.img || 'assets/images/user.jpg',
1888
- isAcceptCall: isConnected
1891
+ isAcceptCall: true
1889
1892
  });
1890
1893
  console.log('Initial participantId:', this.addRes?.participantId);
1891
1894
  }
@@ -2875,7 +2878,6 @@ class DialboxComponent {
2875
2878
  console.log('DialboxComponent constructor');
2876
2879
  }
2877
2880
  initializeTwilio() {
2878
- console.log('initializeTwilio');
2879
2881
  if (!this.isInitialized) {
2880
2882
  this.token = localStorage.getItem('ext_token') || '';
2881
2883
  if (!this.token) {
@@ -3002,7 +3004,6 @@ class DialboxComponent {
3002
3004
  this.twilioService.conferenceCallInfo = incomingCallData;
3003
3005
  if (!!incomingCallData.participants) {
3004
3006
  this.incomingCallsList = incomingCallData.participants.filter((item) => !item.isLeft) || [];
3005
- console.log('this.incomingCallsList web', this.incomingCallsList);
3006
3007
  if (this.incomingCallsList.length) {
3007
3008
  this.isCallInProgress = true;
3008
3009
  this.isDialpadHidden = false;