chore: remove userinfo link on badge

This commit is contained in:
iProdigy 2024-10-21 12:19:59 -07:00
parent d80dd6d8a2
commit 59bb2fe2e9

View file

@ -2778,14 +2778,8 @@ void MessageBuilder::appendTwitchBadges(const QVariantMap &tags,
if (sourceName.has_value()) if (sourceName.has_value())
{ {
const auto &name = sourceName.value(); this->emplace<BadgeElement>(makeSharedChatBadge(sourceName.value()),
auto *badge = this->emplace<BadgeElement>(
makeSharedChatBadge(name),
MessageElementFlag::BadgeSharedChannel); MessageElementFlag::BadgeSharedChannel);
if (!name.isEmpty())
{
badge->setLink({Link::UserInfo, "id:" + sourceId});
}
} }
} }