Skip to content

Commit 09cd926

Browse files
committed
Update deprecated methods
1 parent 3f6868b commit 09cd926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/telnyx/webrtc/sdk/ui/MainViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ class MainViewModel @Inject constructor(
103103
destinationNumber: String,
104104
clientState: String
105105
) {
106-
telnyxClient?.call?.newInvite(
106+
telnyxClient?.newInvite(
107107
callerName, callerNumber, destinationNumber,
108108
clientState, mapOf(Pair("X-test", "123456"))
109109
)
110110
}
111111

112112
fun acceptCall(callId: UUID, destinationNumber: String) {
113-
telnyxClient?.call?.acceptCall(
113+
telnyxClient?.acceptCall(
114114
callId,
115115
destinationNumber,
116116
mapOf(Pair("X-testAndroid", "123456"))

0 commit comments

Comments
 (0)