Return emoji replace by ":o" after a space.

Fixes #4700.
This commit is contained in:
John Preston 2018-05-18 17:15:02 +03:00
parent 425e56b3ea
commit 0238c03956

View File

@ -124,6 +124,7 @@ MessageField::MessageField(QWidget *parent, not_null<Window::Controller*> 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);