Remove tel: scheme when showing friendly version of uri
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user