Quick fixes

This commit is contained in:
Ali
2020-04-14 01:28:52 +04:00
parent 3d388560c4
commit 86f2fd2701
3 changed files with 6 additions and 6 deletions

View File

@@ -129,8 +129,8 @@ private final class TooltipScreenNode: ViewControllerTracingNode {
openActiveTextItem(.textMention(mention), .tap)
} else if let command = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.BotCommand)] as? String {
openActiveTextItem(.botCommand(command), .tap)
} else if let hashtag = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.Hashtag)] as? String {
openActiveTextItem(.hashtag(hashtag), .tap)
} else if let hashtag = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.Hashtag)] as? TelegramHashtag {
openActiveTextItem(.hashtag(hashtag.hashtag), .tap)
}
}
@@ -146,8 +146,8 @@ private final class TooltipScreenNode: ViewControllerTracingNode {
openActiveTextItem(.textMention(mention), .longTap)
} else if let command = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.BotCommand)] as? String {
openActiveTextItem(.botCommand(command), .longTap)
} else if let hashtag = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.Hashtag)] as? String {
openActiveTextItem(.hashtag(hashtag), .longTap)
} else if let hashtag = attributes[NSAttributedString.Key(rawValue: TelegramTextAttributes.Hashtag)] as? TelegramHashtag {
openActiveTextItem(.hashtag(hashtag.hashtag), .longTap)
}
}
}