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.
2 parents b0340d7 + feeeb72 commit fdb6432Copy full SHA for fdb6432
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