mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-27 17:13:40 +00:00
Ignore 'Replace emoji' setting in markdown.
Partially fixes #4727. Fixes #4731.
This commit is contained in:
parent
7a32ad5409
commit
10fa6f0c13
@ -145,7 +145,7 @@ EditCaptionBox::EditCaptionBox(
|
||||
_field->setSubmitSettings(Ui::InputField::SubmitSettings::Both);
|
||||
_field->setInstantReplaces(Ui::InstantReplaces::Default());
|
||||
_field->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
_field->setMarkdownReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
_field->setMarkdownReplacesEnabled(rpl::single(true));
|
||||
}
|
||||
|
||||
void EditCaptionBox::prepareGifPreview(DocumentData *document) {
|
||||
|
@ -1578,7 +1578,7 @@ void SendFilesBox::setupCaption() {
|
||||
});
|
||||
_caption->setInstantReplaces(Ui::InstantReplaces::Default());
|
||||
_caption->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
_caption->setMarkdownReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
_caption->setMarkdownReplacesEnabled(rpl::single(true));
|
||||
}
|
||||
|
||||
void SendFilesBox::captionResized() {
|
||||
|
@ -147,7 +147,7 @@ void InitMessageField(not_null<Ui::InputField*> field) {
|
||||
field->customTab(true);
|
||||
field->setInstantReplaces(Ui::InstantReplaces::Default());
|
||||
field->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
field->setMarkdownReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
field->setMarkdownReplacesEnabled(rpl::single(true));
|
||||
}
|
||||
|
||||
bool HasSendText(not_null<const Ui::InputField*> field) {
|
||||
|
@ -773,7 +773,7 @@ void Notification::showReplyField() {
|
||||
_replyArea->setSubmitSettings(Ui::InputField::SubmitSettings::Both);
|
||||
_replyArea->setInstantReplaces(Ui::InstantReplaces::Default());
|
||||
_replyArea->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
_replyArea->setMarkdownReplacesEnabled(Global::ReplaceEmojiValue());
|
||||
_replyArea->setMarkdownReplacesEnabled(rpl::single(true));
|
||||
|
||||
// Catch mouse press event to activate the window.
|
||||
QCoreApplication::instance()->installEventFilter(this);
|
||||
|
Loading…
Reference in New Issue
Block a user