Fix CHECK.

GitOrigin-RevId: 02effd6bbb16e7b84c9df3f47a98dad94844ddc7
This commit is contained in:
levlam 2020-03-30 15:20:37 +03:00
parent a599557c9d
commit aad96d536e

View File

@ -3760,7 +3760,7 @@ Status fix_formatted_text(string &text, vector<MessageEntity> &entities, bool al
result.resize(last_non_whitespace_pos + 1);
while (!entities.empty() && entities.back().offset > last_non_whitespace_utf16_offset) {
CHECK(entities.back().type == MessageEntity::Type::TextUrl ||
entities.back().type == MessageEntity::Type::MentionName);
entities.back().type == MessageEntity::Type::MentionName || is_pre_entity(entities.back().type));
entities.pop_back();
}
bool need_sort = false;