2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 08:35:21 +00:00

Replace xD by emoji only after space.

This commit is contained in:
John Preston
2018-05-18 18:25:05 +03:00
parent 38daffdbfe
commit 66b7b6da2a
2 changed files with 2 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ MessageField::MessageField(QWidget *parent, not_null<Window::Controller*> contro
":shrug:",
QChar(175) + QString("\\_(") + QChar(12484) + ")_/" + QChar(175));
addInstantReplace(":o ", QString(1, QChar(0xD83D)) + QChar(0xDE28));
addInstantReplace("xD ", QString(1, QChar(0xD83D)) + QChar(0xDE06));
const auto &replacements = Ui::Emoji::internal::GetAllReplacements();
for (const auto &one : replacements) {
const auto with = Ui::Emoji::QStringFromUTF16(one.emoji);