Commit f949e20b authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Kateryna Kostiuk
Browse files

messages: add http prefix to ActiveLabel highlighted urls that lack one

Change-Id: Ic2c407c8aaf2d793e37e94094ebb261abe47ed39
Reviewed-by: Kateryna Kostiuk's avatarKateryna Kostiuk <>
parent bbda4fb5
......@@ -349,7 +349,10 @@ class ConversationViewController: UIViewController, UITextFieldDelegate, Storybo
cell.messageLabel.enabledTypes = [.url]
cell.messageLabel.setTextWithLineSpacing(withText: messageVM.content, withLineSpacing: 2)
cell.messageLabel.handleURLTap { url in
let urlString = url.absoluteString
if let prefixedUrl = URL(string: urlString.contains("http") ? urlString : "http://\(urlString)") {
cell.topCorner.isHidden = true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment