fix: automod username placement (#5759)

This commit is contained in:
pajlada
2024-12-08 12:12:27 +01:00
committed by GitHub
parent a898f8da12
commit e3268767c2
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
- Minor: When blocking a channel, Chatterino will now warn you about that action. (#5615)
- Minor: Indicate when subscriptions and resubscriptions are for multiple months. (#5642)
- Minor: Added a setting to control whether or not to show "Blocked Term" automod messages. (#5690)
- Minor: Improved AutoMod messaging when messages are blocked due to containing blocked terms. (#5699)
- Minor: Improved AutoMod messaging when messages are blocked due to containing blocked terms. (#5699, #5759)
- Minor: Proxy URL information is now included in the `/debug-env` command. (#5648)
- Minor: Make raid entry message usernames clickable. (#5651)
- Minor: Tabs unhighlight when their content is read in other tabs. (#5649)
+2 -3
View File
@@ -1658,9 +1658,8 @@ std::pair<MessagePtr, MessagePtr> MessageBuilder::makeAutomodMessage(
builder.emplace<BadgeElement>(makeAutoModBadge(),
MessageElementFlag::BadgeChannelAuthority);
// AutoMod "username"
builder2.emplace<TextElement>("AutoMod:", MessageElementFlag::Text,
AUTOMOD_USER_COLOR,
FontStyle::ChatMediumBold);
builder.emplace<TextElement>("AutoMod:", MessageElementFlag::Text,
AUTOMOD_USER_COLOR, FontStyle::ChatMediumBold);
// AutoMod header message
builder.emplace<TextElement>(
("Held a message for reason: " + action.reason +