mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Replace xD by emoji only after space.
This commit is contained in:
@@ -125,6 +125,7 @@ MessageField::MessageField(QWidget *parent, not_null<Window::Controller*> contro
|
|||||||
":shrug:",
|
":shrug:",
|
||||||
QChar(175) + QString("\\_(") + QChar(12484) + ")_/" + QChar(175));
|
QChar(175) + QString("\\_(") + QChar(12484) + ")_/" + QChar(175));
|
||||||
addInstantReplace(":o ", QString(1, QChar(0xD83D)) + QChar(0xDE28));
|
addInstantReplace(":o ", QString(1, QChar(0xD83D)) + QChar(0xDE28));
|
||||||
|
addInstantReplace("xD ", QString(1, QChar(0xD83D)) + QChar(0xDE06));
|
||||||
const auto &replacements = Ui::Emoji::internal::GetAllReplacements();
|
const auto &replacements = Ui::Emoji::internal::GetAllReplacements();
|
||||||
for (const auto &one : replacements) {
|
for (const auto &one : replacements) {
|
||||||
const auto with = Ui::Emoji::QStringFromUTF16(one.emoji);
|
const auto with = Ui::Emoji::QStringFromUTF16(one.emoji);
|
||||||
|
@@ -40,7 +40,7 @@ Replace Replaces[] = {
|
|||||||
// { { 0xD83DDE01U }, ":grin:" },
|
// { { 0xD83DDE01U }, ":grin:" },
|
||||||
// { { 0xD83DDE02U }, ":joy:" },
|
// { { 0xD83DDE02U }, ":joy:" },
|
||||||
{ { 0xD83DDE1AU }, ":-*" },
|
{ { 0xD83DDE1AU }, ":-*" },
|
||||||
{ { 0xD83DDE06U }, "xD" },
|
// { { 0xD83DDE06U }, "xD" }, // Conflicts with typing xDDD...
|
||||||
// { { 0xD83DDC4DU }, ":like:" },
|
// { { 0xD83DDC4DU }, ":like:" },
|
||||||
// { { 0xD83DDC4EU }, ":dislike:" },
|
// { { 0xD83DDC4EU }, ":dislike:" },
|
||||||
// { { 0x261DU }, ":up:" },
|
// { { 0x261DU }, ":up:" },
|
||||||
|
Reference in New Issue
Block a user