2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Remove emoji from custom admin ranks.

This commit is contained in:
John Preston
2019-07-28 15:39:06 +02:00
parent 3bf709d459
commit 27d84befa8
6 changed files with 43 additions and 7 deletions

View File

@@ -936,6 +936,20 @@ const InstantReplaces &InstantReplaces::Default() {
return result;
}
const InstantReplaces &InstantReplaces::TextOnly() {
static const auto result = [] {
auto result = InstantReplaces();
result.add("--", QString(1, QChar(8212)));
result.add("<<", QString(1, QChar(171)));
result.add(">>", QString(1, QChar(187)));
result.add(
":shrug:",
QChar(175) + QString("\\_(") + QChar(12484) + ")_/" + QChar(175));
return result;
}();
return result;
}
FlatInput::FlatInput(
QWidget *parent,
const style::FlatInput &st,