Increase emoji range

This commit is contained in:
Nicolas Werner 2020-01-21 22:36:55 +01:00
parent 84ac122c48
commit 1943d1c74d

View file

@ -43,7 +43,7 @@ utils::replaceEmoji(const QString &body)
for (auto &code : utf32_string) {
// TODO: Be more precise here.
if ((code >= 0x2600 && code <= 0x27bf) || (code >= 0x1f300 && code <= 0x1f3ff) ||
(code >= 0x1f000 && code <= 0x1f64f) || (code >= 0x1f680 && code <= 0x1f6ff)) {
(code >= 0x1f000 && code <= 0x1faff)) {
if (!insideFontBlock) {
fmtBody += QString("<font face=\"" + userFontFamily + "\">");
insideFontBlock = true;