From 0238c03956cf00eeaf1c32bc240bf4d686be7d53 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 18 May 2018 17:15:02 +0300 Subject: [PATCH] Return emoji replace by ":o" after a space. Fixes #4700. --- Telegram/SourceFiles/chat_helpers/message_field.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index 88538c9292..201f2f9c9f 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -124,6 +124,7 @@ MessageField::MessageField(QWidget *parent, not_null contro addInstantReplace( ":shrug:", QChar(175) + QString("\\_(") + QChar(12484) + ")_/" + QChar(175)); + addInstantReplace(":o ", QString(1, QChar(0xD83D)) + QChar(0xDE28)); const auto &replacements = Ui::Emoji::internal::GetAllReplacements(); for (const auto &one : replacements) { const auto with = Ui::Emoji::QStringFromUTF16(one.emoji);