mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't allow custom emoji pseudo-links in EditLink.
This commit is contained in:
parent
4933fbb74a
commit
5f8fca0355
2 changed files with 2 additions and 3 deletions
|
@ -623,8 +623,7 @@ 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;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9604836ed943299278395b51d21fe04459272d1a
|
Subproject commit 2f5d5e0e79bf52ab04047bc93a4b624d6d33d46a
|
Loading…
Add table
Reference in a new issue