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);
|
||||
|
||||
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 });
|
||||
}
|
||||
++tag;
|
||||
|
Loading…
Reference in New Issue
Block a user