@vgroup/dialbox 0.2.41 โ 0.2.42
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.
|
@@ -2536,25 +2536,15 @@ class CallProgressComponent {
|
|
|
2536
2536
|
rejectConcurrentCall(incomingCall) {
|
|
2537
2537
|
if (!incomingCall)
|
|
2538
2538
|
return;
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
if (incomingCall.reject) {
|
|
2542
|
-
incomingCall.reject(); // Twilio-like API
|
|
2543
|
-
}
|
|
2544
|
-
else if (incomingCall.disconnect) {
|
|
2545
|
-
incomingCall.disconnect(); // Some SDKs use disconnect()
|
|
2546
|
-
}
|
|
2547
|
-
else if (incomingCall.hangup) {
|
|
2548
|
-
incomingCall.hangup(); // Fallback if the SDK uses hangup()
|
|
2549
|
-
}
|
|
2550
|
-
}
|
|
2551
|
-
catch (err) {
|
|
2552
|
-
console.error('Error rejecting call:', err);
|
|
2539
|
+
if (incomingCall.reject) {
|
|
2540
|
+
incomingCall.reject();
|
|
2553
2541
|
}
|
|
2554
|
-
|
|
2542
|
+
if (incomingCall.disconnect)
|
|
2543
|
+
incomingCall.disconnect();
|
|
2544
|
+
// Remove from list
|
|
2555
2545
|
this.newIncomingCallsList = (this.newIncomingCallsList || []).filter((c) => c?.parameters?.CallSid !== incomingCall?.parameters?.CallSid);
|
|
2556
2546
|
this.incomingCallsNewInfo.emit(this.newIncomingCallsList);
|
|
2557
|
-
//
|
|
2547
|
+
// If no more incoming, hide banner
|
|
2558
2548
|
if (!this.newIncomingCallsList || this.newIncomingCallsList.length === 0) {
|
|
2559
2549
|
this.isConcurrentIncoming = false;
|
|
2560
2550
|
this.incomingCallDiv = false;
|