mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 05:51:42 +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) {
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user