Commit 544fc2fb authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Fix method type on default actions

parent a36928fd
...@@ -187,8 +187,10 @@ class CallViewModel(val call: Call) : ViewModel() { ...@@ -187,8 +187,10 @@ class CallViewModel(val call: Call) : ViewModel() {
} }
fun performAction(action: Action) { fun performAction(action: Action) {
device.value?.also { d -> val actionMethodType = device.value?.let { d->
when (d.actionsMethodType) { d.actionsMethodType
} ?: corePreferences.defaultActionsMethodType
when (actionMethodType) {
"method_dtmf_sip_info" -> { "method_dtmf_sip_info" -> {
coreContext.core.useInfoForDtmf = true coreContext.core.useInfoForDtmf = true
action.code?.let { call.sendDtmfs(it) } action.code?.let { call.sendDtmfs(it) }
...@@ -210,7 +212,6 @@ class CallViewModel(val call: Call) : ViewModel() { ...@@ -210,7 +212,6 @@ class CallViewModel(val call: Call) : ViewModel() {
} }
} }
} }
}
fun extendedAccept() { fun extendedAccept() {
call.extendedAccept() call.extendedAccept()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment