We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07c5f26 commit 76b9b03Copy full SHA for 76b9b03
Sources/Views/MessageLabel.swift
@@ -479,7 +479,7 @@ open class MessageLabel: UILabel {
479
guard let date = date else { return }
480
handleDate(date)
481
case let .link(url):
482
- guard let url = url, UIApplication.shared.canOpenURL(url) else { return }
+ guard let url = url, ["http", "https"].contains(url.scheme?.lowercased() ?? "") else { return }
483
handleURL(url)
484
case let .transitInfoComponents(transitInformation):
485
var transformedTransitInformation = [String: String]()
0 commit comments