This commit is contained in:
Ali
2020-06-02 16:38:24 +04:00
parent c27e70632d
commit b9aeb28c0d
41 changed files with 2864 additions and 2345 deletions

View File

@@ -386,7 +386,7 @@ public class ItemListTextWithLabelItemNode: ListViewItemNode {
let textNodeFrame = self.textNode.frame
if let (_, attributes) = self.textNode.attributesAtPoint(CGPoint(x: point.x - textNodeFrame.minX, y: point.y - textNodeFrame.minY)) {
if let url = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.URL)] as? String {
return .url(url)
return .url(url: url, concealed: false)
} else if let peerName = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.PeerTextMention)] as? String {
return .mention(peerName)
} else if let hashtag = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.Hashtag)] as? TelegramHashtag {