2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Don't allow custom emoji pseudo-links in EditLink.

This commit is contained in:
John Preston
2022-08-15 18:41:37 +03:00
parent 4933fbb74a
commit 5f8fca0355
2 changed files with 2 additions and 3 deletions

View File

@@ -623,8 +623,7 @@ void MessageLinksParser::parse() {
Expects(tag != tagsEnd);
if (Ui::InputField::IsValidMarkdownLink(tag->id)
&& !TextUtilities::IsMentionLink(tag->id)
&& !Ui::InputField::IsCustomEmojiLink(tag->id)) {
&& !TextUtilities::IsMentionLink(tag->id)) {
ranges.push_back({ tag->offset, tag->length, tag->id });
}
++tag;