Remove tel: scheme when showing friendly version of uri

This commit is contained in:
Juha Heinanen
2026-06-05 09:13:12 +03:00
parent 492d37b464
commit d51ca57217

View File

@ -182,8 +182,10 @@ object Utils {
else else
"$user@$host;" + params.joinToString(";") "$user@$host;" + params.joinToString(";")
} }
if (uri.startsWith("<") && (uri.endsWith(">"))) if (u.startsWith("<") && u.endsWith(">"))
u = uri.substring(1).substringBeforeLast(">") u = u.substring(1).substringBeforeLast(">")
if (u.startsWith("tel:", ignoreCase = true))
u = u.substring(4)
u = u.substringBefore("?") u = u.substringBefore("?")
u = u.replace(":5060", "") u = u.replace(":5060", "")
u = u.replace(";transport=udp", "", true) u = u.replace(";transport=udp", "", true)