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() {
}
fun performAction(action: Action) {
device.value?.also { d ->
when (d.actionsMethodType) {
val actionMethodType = device.value?.let { d->
d.actionsMethodType
} ?: corePreferences.defaultActionsMethodType
when (actionMethodType) {
"method_dtmf_sip_info" -> {
coreContext.core.useInfoForDtmf = true
action.code?.let { call.sendDtmfs(it) }
......@@ -210,7 +212,6 @@ class CallViewModel(val call: Call) : ViewModel() {
}
}
}
}
fun 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