mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Don't send custom emoji links to generate previews.
This commit is contained in:
parent
5ce8ed80bf
commit
323c2a6aa5
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue