@vgroup/dialbox 0.0.4 → 0.0.5

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.
@@ -2309,11 +2309,11 @@ class DialboxComponent {
2309
2309
  //this.callData = call;
2310
2310
  this.newIncomingCallData = call;
2311
2311
  }
2312
- // rejectNewIncomingCall(call: Call) {
2313
- // call.reject();
2314
- // this.newIncomingCalls = this.newIncomingCalls.filter(item => item.parameters.CallSid !== call.parameters.CallSid);
2315
- // this.incomingCallsList = this.incomingCallsList.filter(item => item.parameters.CallSid !== call.parameters.CallSid);
2316
- // }
2312
+ rejectNewIncomingCall(call) {
2313
+ call.reject();
2314
+ this.newIncomingCalls = this.newIncomingCalls.filter((item) => item.parameters['CallSid'] !== call.parameters['CallSid']);
2315
+ this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== call.parameters['CallSid']);
2316
+ }
2317
2317
  newIncomingCallInitiated() {
2318
2318
  this.isCallInProgress = true;
2319
2319
  this.newIncomingCalls = [];