Skip to content

Commit

Permalink
Merge pull request #128 from team-telnyx/IS/Fix/QuickDeclineCallFix
Browse files Browse the repository at this point in the history
Is/fix/quick decline call fix
  • Loading branch information
isaacakakpo1 authored Jul 24, 2024
2 parents f958b23 + 0fbd880 commit 4ca3a34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ let package = Package(
.product(name: "WebRTC", package: "WebRTC")
],
path: "TelnyxRTC",
sources: ["Info.plist"],
resources: [.copy("PrivacyInfo.xcprivacy")]
)
],
Expand Down
2 changes: 1 addition & 1 deletion TelnyxRTC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |spec|

spec.name = "TelnyxRTC"
spec.version = "0.1.29"
spec.version = "0.1.30"
spec.summary = "Enable Telnyx real-time communication services on iOS."
spec.description = "The Telnyx iOS WebRTC Client SDK provides all the functionality you need to start making voice calls from an iPhone."
spec.homepage = "https://github.com/team-telnyx/telnyx-webrtc-ios"
Expand Down
8 changes: 5 additions & 3 deletions TelnyxRTC/Telnyx/TxClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,14 @@ public class TxClient {
if let call = self.calls[endAction.callUUID] {
Logger.log.i(message: "EndClient:: Ended Call with Id \(endAction.callUUID)")
call.hangup()
} else {
self.resetPushVariables()
endAction.fulfill()
} else if(self.calls[self.currentCallId] != nil) {
Logger.log.i(message: "EndClient:: Ended Call")
self.calls[self.currentCallId]?.hangup()
self.resetPushVariables()
endAction.fulfill()
}
self.resetPushVariables()
endAction.fulfill()
}


Expand Down

0 comments on commit 4ca3a34

Please sign in to comment.