mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Only enlarge emoji if the setting is on
This commit is contained in:
parent
9429e3c000
commit
3b3d9dff83
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue