@vgroup/dialbox 0.6.6 → 0.6.7

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.
@@ -2141,7 +2141,7 @@ class CallProgressComponent {
2141
2141
  }
2142
2142
  async onEndIncomingCall() {
2143
2143
  let index = this.currentCallList.findIndex((res) => res.participantId == this.currentCall.participantId);
2144
- this.extensionService.getRemoveParticipants(this.currentCallList[index]?.participantId, this.currentCallList[index]?.conferenceId).subscribe((res) => {
2144
+ this.extensionService.getRemoveParticipants(this.currentCallList[index]?.participantId, this.currentCallList[index]?.conferenceId || 'no').subscribe((res) => {
2145
2145
  console.log(res);
2146
2146
  this.currentCallList.splice(index, 1);
2147
2147
  this.incomeingCallSocketService.pause();
@@ -2151,11 +2151,13 @@ class CallProgressComponent {
2151
2151
  async onEndCall(c, isAllCallEnd, isContect) {
2152
2152
  if (!c?.isAcceptCall && !isContect) {
2153
2153
  let index = this.currentCallList.findIndex((res) => res.participantId == c.participantId);
2154
- this.currentCallList.splice(index, 1);
2155
- this.incomeingCallSocketService.pause();
2156
- this.call?.disconnect();
2157
- this.endIncomingCallEvent.emit(c);
2158
- return false;
2154
+ this.extensionService.getRemoveParticipants(this.currentCallList[index]?.participantId, this.currentCallList[index]?.conferenceId || 'no').subscribe((res) => {
2155
+ this.currentCallList.splice(index, 1);
2156
+ this.incomeingCallSocketService.pause();
2157
+ this.call?.disconnect();
2158
+ this.endIncomingCallEvent.emit(c);
2159
+ return false;
2160
+ });
2159
2161
  }
2160
2162
  let participantId = isAllCallEnd ? 'all' : c.participantId;
2161
2163
  let conferenceId = isAllCallEnd ? 'all' : c.conferenceId || this.currentCall.conferenceId;