File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 22
33* Fix: [ Web] Multiple missed call notifications
44* Fix: [ Android] ` openPhoneAccountsSettings ` not always opening on various Android (mainly Samsung) devices
5+ * Fix: Showing ` CallDirection.outgoing ` instead of ` CallDirection.incoming ` when Incoming call is ringing in ` CallEventsListeners ` .
6+ * Fix: ` ActiveCall ` is not null even after the Call is declined.
57
68## 0.1.0
79
Original file line number Diff line number Diff line change @@ -315,15 +315,19 @@ class MethodChannelTwilioVoice extends TwilioVoicePlatform {
315315 // https://www.twilio.com/docs/api/errors/31486
316316 // The callee is busy.
317317 if (tokens[1 ].contains ("31603" ) || tokens[1 ].contains ("31486" )) {
318+ call.activeCall = null ;
318319 return CallEvent .declined;
319320 } else if (tokens.toString ().toLowerCase ().contains ("call rejected" )) {
320321 // Android call reject from string: "LOG|Call Rejected"
322+ call.activeCall = null ;
321323 return CallEvent .declined;
322324 } else if (tokens.toString ().toLowerCase ().contains ("rejecting call" )) {
323325 // iOS call reject from string: "LOG|provider:performEndCallAction: rejecting call"
326+ call.activeCall = null ;
324327 return CallEvent .declined;
325328 } else if (tokens[1 ].contains ("Call Rejected" )) {
326329 // macOS / web call reject from string: "Call Rejected"
330+ call.activeCall = null ;
327331 return CallEvent .declined;
328332 }
329333 return CallEvent .log;
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ class TwilioVoice extends MethodChannelTwilioVoice {
1212 static TwilioVoicePlatform get instance => MethodChannelTwilioVoice .instance;
1313}
1414
15- class Call extends MethodChannelTwilioCall {}
15+ class Call extends MethodChannelTwilioCall {}
You can’t perform that action at this time.
0 commit comments