Don't warn when server deletes a custom emoji entity.

This commit is contained in:
levlam 2022-07-21 14:10:26 +03:00
parent d499fa5834
commit 52214f37bc

View File

@ -3101,7 +3101,8 @@ static bool need_message_entities_changed_warning(const vector<MessageEntity> &o
continue;
}
if (old_pos < old_entities.size() && old_entities[old_pos].type == MessageEntity::Type::MentionName) {
if (old_pos < old_entities.size() && (old_entities[old_pos].type == MessageEntity::Type::MentionName ||
old_entities[old_pos].type == MessageEntity::Type::CustomEmoji)) {
// server could delete sime MentionName entities
old_pos++;
continue;