mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Don't allow custom emoji pseudo-links in EditLink.
This commit is contained in:
@@ -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
Submodule Telegram/lib_ui updated: 9604836ed9...2f5d5e0e79
Reference in New Issue
Block a user