Fixed getting of URI scheme

This commit is contained in:
Juha Heinanen
2023-03-02 07:46:08 +02:00
parent 177f5c663c
commit 2b05ee2fdc

View File

@ -162,7 +162,7 @@ object Utils {
fun e164Uri(uri: String, countryCode: String): String {
if (countryCode == "") return uri
val scheme = uri.substring(0, 3)
val scheme = uri.substring(0, 4)
val userPart = uriUserPart(uri)
return if (userPart.isDigitsOnly()) {
when {