Filter bio entities

This commit is contained in:
Ali
2020-10-28 22:31:45 +04:00
parent 08296d1eb0
commit 56a4beb174
8 changed files with 35 additions and 18 deletions

View File

@@ -122,7 +122,7 @@ final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContentNode {
if let textValue = webpage.text, !textValue.isEmpty {
text = textValue
var entityTypes: EnabledEntityTypes = [.url]
var entityTypes: EnabledEntityTypes = [.allUrl]
switch type {
case .twitter, .instagram:
entityTypes.insert(.mention)