mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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);
|
||||
|
||||
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;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9604836ed943299278395b51d21fe04459272d1a
|
||||
Subproject commit 2f5d5e0e79bf52ab04047bc93a4b624d6d33d46a
|
Loading…
Add table
Reference in a new issue