Show only Nickname AoR in account list

This commit is contained in:
Juha Heinanen
2026-08-07 17:39:38 +03:00
parent 283cfdfb2f
commit 5455355709

View File

@ -208,7 +208,7 @@ fun NewAccount(navController: NavController) {
if (Account.ofAor(aor) != null) { if (Account.ofAor(aor) != null) {
alertTitle.value = ctx.getString(R.string.notice) alertTitle.value = ctx.getString(R.string.notice)
alertMessage.value = alertMessage.value =
String.format(ctx.getString(R.string.account_exists), aor.removePrefix("sip:")) String.format(ctx.getString(R.string.account_exists), aor.split(":")[1])
showAlert.value = true showAlert.value = true
return null return null
} }