Only enlarge emoji if the setting is on

This commit is contained in:
Loren Burkholder 2023-03-09 15:36:15 -05:00
parent 9429e3c000
commit 3b3d9dff83

View file

@ -141,7 +141,11 @@ utils::replaceEmoji(const QString &body)
if (!insideTag && utils::codepointIsEmoji(code)) { if (!insideTag && utils::codepointIsEmoji(code)) {
if (!insideFontBlock) { if (!insideFontBlock) {
fmtBody += QStringLiteral("<font face=\"") % UserSettings::instance()->emojiFont() % fmtBody += QStringLiteral("<font face=\"") % UserSettings::instance()->emojiFont() %
QStringLiteral("\" size=\"4\">"); QStringLiteral("\"") %
(UserSettings::instance()->enlargeEmojiOnlyMessages()
? QStringLiteral(" size=\"4\"")
: QString{}) %
QStringLiteral(">");
insideFontBlock = true; insideFontBlock = true;
} else if (code == 0xfe0f) { } else if (code == 0xfe0f) {
// BUG(Nico): // BUG(Nico):