mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
no message
This commit is contained in:
@@ -174,15 +174,15 @@ final class ChatBotInfoItemNode: ListViewItemNode {
|
||||
func tapActionAtPoint(_ point: CGPoint) -> ChatMessageBubbleContentTapAction {
|
||||
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[TextNode.UrlAttribute] as? String {
|
||||
if let url = attributes[NSAttributedStringKey(rawValue: TextNode.UrlAttribute)] as? String {
|
||||
return .url(url)
|
||||
} else if let peerMention = attributes[TextNode.TelegramPeerMentionAttribute] as? TelegramPeerMention {
|
||||
} else if let peerMention = attributes[NSAttributedStringKey(rawValue: TextNode.TelegramPeerMentionAttribute)] as? TelegramPeerMention {
|
||||
return .peerMention(peerMention.peerId, peerMention.mention)
|
||||
} else if let peerName = attributes[TextNode.TelegramPeerTextMentionAttribute] as? String {
|
||||
} else if let peerName = attributes[NSAttributedStringKey(rawValue: TextNode.TelegramPeerTextMentionAttribute)] as? String {
|
||||
return .textMention(peerName)
|
||||
} else if let botCommand = attributes[TextNode.TelegramBotCommandAttribute] as? String {
|
||||
} else if let botCommand = attributes[NSAttributedStringKey(rawValue: TextNode.TelegramBotCommandAttribute)] as? String {
|
||||
return .botCommand(botCommand)
|
||||
} else if let hashtag = attributes[TextNode.TelegramHashtagAttribute] as? TelegramHashtag {
|
||||
} else if let hashtag = attributes[NSAttributedStringKey(rawValue: TextNode.TelegramHashtagAttribute)] as? TelegramHashtag {
|
||||
return .hashtag(hashtag.peerName, hashtag.hashtag)
|
||||
} else {
|
||||
return .none
|
||||
|
||||
Reference in New Issue
Block a user