Fixed ZRTP verify query

This commit is contained in:
Juha Heinanen
2025-04-21 14:07:24 +03:00
parent dc61da64cb
commit b82bc5cc50
@@ -2408,7 +2408,7 @@ class MainActivity : ComponentActivity() {
return return
} }
dialogTitle.value = getString(R.string.verify) dialogTitle.value = getString(R.string.verify)
dialogMessage.value = String.format(getString(R.string.verify_sas), call.zid) dialogMessage.value = String.format(getString(R.string.verify_sas), ev[1])
positiveText.value = getString(R.string.yes) positiveText.value = getString(R.string.yes)
onPositiveClicked.value = { onPositiveClicked.value = {
call.security = if (Api.cmd_exec("zrtp_verify ${ev[2]}") != 0) { call.security = if (Api.cmd_exec("zrtp_verify ${ev[2]}") != 0) {
@@ -2429,6 +2429,7 @@ class MainActivity : ComponentActivity() {
securityIcon.intValue = R.drawable.locked_yellow securityIcon.intValue = R.drawable.locked_yellow
onNegativeClicked.value = {} onNegativeClicked.value = {}
} }
showDialog.value = true
} }
"call verified", "call secure" -> { "call verified", "call secure" -> {
val callp = params[1] as Long val callp = params[1] as Long