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 (!insideTag && utils::codepointIsEmoji(code)) {
if (!insideFontBlock) { if (!insideFontBlock) {
fmtBody += QStringLiteral("<font face=\"") % UserSettings::instance()->emojiFont() % fmtBody += QStringLiteral("<font face=\"") % UserSettings::instance()->emojiFont() %
QStringLiteral("\"") %
(UserSettings::instance()->enlargeEmojiOnlyMessages() (UserSettings::instance()->enlargeEmojiOnlyMessages()
? QStringLiteral(" size=\"4\"") ? QStringLiteral("\" size=\"4\">")
: QString{}) % : QStringLiteral("\">"));
QStringLiteral(">");
insideFontBlock = true; insideFontBlock = true;
} else if (code == 0xfe0f) { } else if (code == 0xfe0f) {
// BUG(Nico): // BUG(Nico):