mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix tagging for messages with TextUrl entities
This commit is contained in:
parent
d11ab57854
commit
2f0114f69e
@ -108,7 +108,7 @@ public func tagsForStoreMessage(incoming: Bool, attributes: [MessageAttribute],
|
|||||||
if let textEntities = textEntities, !textEntities.isEmpty && !tags.contains(.webPage) {
|
if let textEntities = textEntities, !textEntities.isEmpty && !tags.contains(.webPage) {
|
||||||
for entity in textEntities {
|
for entity in textEntities {
|
||||||
switch entity.type {
|
switch entity.type {
|
||||||
case .Url, .Email:
|
case .Url, .TextUrl, .Email:
|
||||||
if media.isEmpty || !(media.first is TelegramMediaWebpage) {
|
if media.isEmpty || !(media.first is TelegramMediaWebpage) {
|
||||||
tags.insert(.webPage)
|
tags.insert(.webPage)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user