From 6adce380623b345fa7885ce193af0800f6fad207 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 15 Nov 2023 20:29:55 +0300 Subject: [PATCH] Allow whitespace-only BlockQuote entities. --- td/telegram/MessageEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessageEntity.cpp b/td/telegram/MessageEntity.cpp index 51c654cb3..75e112c0f 100644 --- a/td/telegram/MessageEntity.cpp +++ b/td/telegram/MessageEntity.cpp @@ -1516,7 +1516,7 @@ static int32 is_user_entity(MessageEntity::Type type) { static int32 is_hidden_data_entity(MessageEntity::Type type) { return (get_entity_type_mask(type) & (get_entity_type_mask(MessageEntity::Type::TextUrl) | get_entity_type_mask(MessageEntity::Type::MentionName) | - get_pre_entities_mask())) != 0; + get_pre_entities_mask() | get_blockquote_entities_mask())) != 0; } static constexpr size_t SPLITTABLE_ENTITY_TYPE_COUNT = 5;