@vgroup/dialbox 0.5.7 → 0.5.9

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.
@@ -1932,7 +1932,7 @@ class CallProgressComponent {
1932
1932
  }
1933
1933
  });
1934
1934
  let currentCall = this.currentCallList.find((item) => item.isAcceptCall && !item.isHold);
1935
- if (currentCall?.id || this.currentCallList.length == 1) {
1935
+ if (currentCall?.id) {
1936
1936
  this.currentCall = currentCall || this.currentCallList[0];
1937
1937
  }
1938
1938
  if (this.selectedUserInfo?.participantId) {
@@ -2182,6 +2182,7 @@ class CallProgressComponent {
2182
2182
  async onEndIncomingCall() {
2183
2183
  let index = this.currentCallList.findIndex((res) => res.participantId == this.currentCall.participantId);
2184
2184
  this.currentCallList.splice(index, 1);
2185
+ this.incomeingCallSocketService.pause();
2185
2186
  }
2186
2187
  async onEndCall(c, isAllCallEnd) {
2187
2188
  if (!c.isAcceptCall) {
@@ -3856,6 +3857,7 @@ class DialboxComponent {
3856
3857
  let incomingCallIndex = this.incomingCallsList.findIndex((call) => call.participantId === this.incomingCallnotification.data.data?.recordId);
3857
3858
  if (incomingCallIndex > -1) {
3858
3859
  this.incomingCallsList.splice(incomingCallIndex, 1);
3860
+ this.incomeingCallSocketService.pause();
3859
3861
  }
3860
3862
  console.log('test', this.incomingCallsList);
3861
3863
  this.isIncomingCallnotification = false;