Update src/Utils.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
Loren Burkholder 2023-03-09 13:04:53 -08:00 committed by GitHub
parent 3b3d9dff83
commit 04a26a5f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):