Skip to content

Commit 15c848e

Browse files
committed
feat(ios): fix not rejecting call invite on hangUp()
1 parent b1f1d1b commit 15c848e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ios/Classes/SwiftTwilioVoicePlugin.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ public class SwiftTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStreamHand
287287
self.userInitiatedDisconnect = true
288288
performEndCallAction(uuid: self.call!.uuid!)
289289
//self.toggleUIState(isEnabled: false, showCallControl: false)
290+
} else if(self.callInvite != nil) {
291+
performEndCallAction(uuid: self.callInvite!.uuid)
290292
}
291293
}else if flutterCall.method == "registerClient"{
292294
guard let clientId = arguments["id"] as? String, let clientName = arguments["name"] as? String else {return}

0 commit comments

Comments
 (0)