summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-03-09 15:36:15 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2023-03-09 15:36:15 -0500
commit3b3d9dff83482579218482b47da1b8a30db9c98e (patch)
tree3c4abdc6aa8d5bb1996ecb8bea2ba301b935ae85 /src
parentScroll farther on PgUp/PgDn (diff)
downloadnheko-3b3d9dff83482579218482b47da1b8a30db9c98e.tar.xz
Only enlarge emoji if the setting is on
Diffstat (limited to 'src')
-rw-r--r--src/Utils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 0ea5565b..3d29481c 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -141,7 +141,11 @@ utils::replaceEmoji(const QString &body)
         if (!insideTag && utils::codepointIsEmoji(code)) {
             if (!insideFontBlock) {
                 fmtBody += QStringLiteral("<font face=\"") % UserSettings::instance()->emojiFont() %
-                           QStringLiteral("\" size=\"4\">");
+                           QStringLiteral("\"") %
+                           (UserSettings::instance()->enlargeEmojiOnlyMessages()
+                              ? QStringLiteral(" size=\"4\"")
+                              : QString{}) %
+                           QStringLiteral(">");
                 insideFontBlock = true;
             } else if (code == 0xfe0f) {
                 // BUG(Nico):