mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
chore: remove userinfo link on badge
This commit is contained in:
parent
d80dd6d8a2
commit
59bb2fe2e9
|
@ -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});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue