mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 12:00:48 +00:00
Don't send custom emoji links to generate previews.
This commit is contained in:
parent
5ce8ed80bf
commit
323c2a6aa5
@ -618,7 +618,8 @@ void MessageLinksParser::parse() {
|
|||||||
Expects(tag != tagsEnd);
|
Expects(tag != tagsEnd);
|
||||||
|
|
||||||
if (Ui::InputField::IsValidMarkdownLink(tag->id)
|
if (Ui::InputField::IsValidMarkdownLink(tag->id)
|
||||||
&& !TextUtilities::IsMentionLink(tag->id)) {
|
&& !TextUtilities::IsMentionLink(tag->id)
|
||||||
|
&& !Ui::InputField::IsCustomEmojiLink(tag->id)) {
|
||||||
ranges.push_back({ tag->offset, tag->length, tag->id });
|
ranges.push_back({ tag->offset, tag->length, tag->id });
|
||||||
}
|
}
|
||||||
++tag;
|
++tag;
|
||||||
|
Loading…
Reference in New Issue
Block a user