Add TextUrl messages to Shared Links.

GitOrigin-RevId: bc2d5f952a792cb3c863b9e4093bce335a143cc9
This commit is contained in:
levlam 2018-07-08 18:20:13 +03:00
parent ecc774367b
commit e0c7e0b930

View File

@ -5048,7 +5048,8 @@ int32 MessagesManager::get_message_content_index_mask(const MessageContent *cont
search_messages_filter_index_mask(SearchMessagesFilter::PhotoAndVideo); search_messages_filter_index_mask(SearchMessagesFilter::PhotoAndVideo);
case MessageText::ID: case MessageText::ID:
for (auto &entity : static_cast<const MessageText *>(content)->text.entities) { for (auto &entity : static_cast<const MessageText *>(content)->text.entities) {
if (entity.type == MessageEntity::Type::Url || entity.type == MessageEntity::Type::EmailAddress) { if (entity.type == MessageEntity::Type::Url || entity.type == MessageEntity::Type::EmailAddress ||
entity.type == MessageEntity::Type::TextUrl) {
return search_messages_filter_index_mask(SearchMessagesFilter::Url); return search_messages_filter_index_mask(SearchMessagesFilter::Url);
} }
} }