fix: remove ":" from the message the user is replying to if it's a /me message (#5263)

This commit is contained in:
Michał Partyka 2024-03-24 19:10:40 +01:00 committed by GitHub
parent 00119a8e3e
commit 2750c528af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -113,6 +113,7 @@
- Bugfix: Fixed split header tooltips appearing too tall. (#5232)
- Bugfix: Fixed past messages not showing in the search popup after adding a channel. (#5248)
- Bugfix: Detect when OBS is running on MacOS. (#5260)
- Bugfix: Remove ":" from the message the user is replying to if it's a /me message. (#5263)
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
- Dev: Change clang-format from v14 to v16. (#4929)
- Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791)

View file

@ -893,8 +893,10 @@ void TwitchMessageBuilder::parseThread()
->setLink({Link::ViewThread, this->thread_->rootId()});
this->emplace<TextElement>(
"@" + usernameText + ":", MessageElementFlag::RepliedMessage,
threadRoot->usernameColor, FontStyle::ChatMediumSmall)
"@" + usernameText +
(threadRoot->flags.has(MessageFlag::Action) ? "" : ":"),
MessageElementFlag::RepliedMessage, threadRoot->usernameColor,
FontStyle::ChatMediumSmall)
->setLink({Link::UserInfo, threadRoot->displayName});
MessageColor color = MessageColor::Text;