mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Business features
This commit is contained in:
@@ -178,9 +178,11 @@ public func generateChatInputTextEntities(_ text: NSAttributedString, maxAnimate
|
||||
}
|
||||
})
|
||||
|
||||
for entity in generateTextEntities(text.string, enabledTypes: .allUrl) {
|
||||
if case .Url = entity.type {
|
||||
entities.append(entity)
|
||||
if generateLinks {
|
||||
for entity in generateTextEntities(text.string, enabledTypes: .allUrl) {
|
||||
if case .Url = entity.type {
|
||||
entities.append(entity)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user