Show notice if mobile call is attempted to contact with no TEL URI

This commit is contained in:
Juha Heinanen
2026-05-18 18:19:34 +03:00
parent de77528582
commit e7734b1b60

View File

@ -677,7 +677,8 @@ private fun ContactsContent(
CustomElements.showSelectItemDialog.value = false
}
CustomElements.showSelectItemDialog.value = true
} else if (uris.size == 1) {
}
else if (uris.size == 1) {
intent.putExtra("peer", uris[0])
handleIntent(ctx, viewModel, intent, "call")
navController.navigate("main") {
@ -685,6 +686,11 @@ private fun ContactsContent(
launchSingleTop = true
}
}
else {
alertTitle.value = ctx.getString(R.string.notice)
alertMessage.value = ctx.getString(R.string.no_telephone_number)
showAlert.value = true
}
}
}
thirdText.value = ctx.getString(R.string.send_message)