Don't warn when server deletes a custom emoji entity.
This commit is contained in:
parent
d499fa5834
commit
52214f37bc
@ -3101,7 +3101,8 @@ static bool need_message_entities_changed_warning(const vector<MessageEntity> &o
|
|||||||
continue;
|
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
|
// server could delete sime MentionName entities
|
||||||
old_pos++;
|
old_pos++;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user