mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-06 06:13:10 +00:00
Fix phone numbers
This commit is contained in:
parent
9c5f860317
commit
f90f4674a2
@ -9439,7 +9439,9 @@ private final class ContextControllerContentSourceImpl: ContextControllerContent
|
|||||||
|
|
||||||
func parseUrl(url: String, wasConcealed: Bool) -> (string: String, concealed: Bool) {
|
func parseUrl(url: String, wasConcealed: Bool) -> (string: String, concealed: Bool) {
|
||||||
var parsedUrlValue: URL?
|
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
|
parsedUrlValue = parsed
|
||||||
} else if let parsed = URL(string: "https://" + url) {
|
} else if let parsed = URL(string: "https://" + url) {
|
||||||
parsedUrlValue = parsed
|
parsedUrlValue = parsed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user