We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reject()
CallStatus.pending
1 parent f040b55 commit feeeb72Copy full SHA for feeeb72
lib/_internal/twilio_voice_web.dart
@@ -726,7 +726,8 @@ class Call extends MethodChannelTwilioCall {
726
_cancelNotification(callSid!);
727
728
CallStatus callStatus = getCallStatus(_jsCall!);
729
- if (callStatus == CallStatus.ringing) {
+ // reject incoming call that is both outbound ringing or inbound pending
730
+ if (callStatus == CallStatus.ringing || callStatus == CallStatus.pending) {
731
_jsCall!.reject();
732
} else {
733
_jsCall!.disconnect();
0 commit comments