summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLoren Burkholder <55629213+LorenDB@users.noreply.github.com>2023-03-09 13:04:53 -0800
committerGitHub <noreply@github.com>2023-03-09 13:04:53 -0800
commit04a26a5f4327973354c606eb7e0fcd943ed17916 (patch)
tree8d317b1e03d498607249b68967fd91443e8929b6 /src
parentOnly enlarge emoji if the setting is on (diff)
downloadnheko-04a26a5f4327973354c606eb7e0fcd943ed17916.tar.xz
Update src/Utils.cpp
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
Diffstat (limited to 'src')
-rw-r--r--src/Utils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 3d29481c..63dcdd00 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -141,11 +141,9 @@ utils::replaceEmoji(const QString &body)
         if (!insideTag && utils::codepointIsEmoji(code)) {
             if (!insideFontBlock) {
                 fmtBody += QStringLiteral("<font face=\"") % UserSettings::instance()->emojiFont() %
-                           QStringLiteral("\"") %
                            (UserSettings::instance()->enlargeEmojiOnlyMessages()
-                              ? QStringLiteral(" size=\"4\"")
-                              : QString{}) %
-                           QStringLiteral(">");
+                              ? QStringLiteral("\" size=\"4\">")
+                              : QStringLiteral("\">"));
                 insideFontBlock = true;
             } else if (code == 0xfe0f) {
                 // BUG(Nico):