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
2 changed files with 5 additions and 2 deletions
@@ -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;