Fix phone numbers

This commit is contained in:
Ali 2020-07-01 00:53:39 +04:00
parent 9c5f860317
commit f90f4674a2

View File

@ -9439,7 +9439,9 @@ private final class ContextControllerContentSourceImpl: ContextControllerContent
func parseUrl(url: String, wasConcealed: Bool) -> (string: String, concealed: Bool) {
var parsedUrlValue: URL?
if let parsed = URL(string: url) {
if url.hasPrefix("tel:") {
return (url, false)
} else if let parsed = URL(string: url) {
parsedUrlValue = parsed
} else if let parsed = URL(string: "https://" + url) {
parsedUrlValue = parsed