feat: add initial experimental Twitch Eventsub support (#5837)
Co-authored-by: nerix <nerixdev@outlook.de>
This commit is contained in:
@@ -918,6 +918,22 @@ MentionElement::MentionElement(const QString &displayName, QString loginName_,
|
||||
{
|
||||
}
|
||||
|
||||
template <typename>
|
||||
MentionElement::MentionElement(const QString &displayName, QString loginName_,
|
||||
MessageColor fallbackColor_, QColor userColor_)
|
||||
: TextElement(displayName,
|
||||
{MessageElementFlag::Text, MessageElementFlag::Mention})
|
||||
, fallbackColor(fallbackColor_)
|
||||
, userColor(userColor_.isValid() ? userColor_ : fallbackColor_)
|
||||
, userLoginName(std::move(loginName_))
|
||||
{
|
||||
}
|
||||
|
||||
template MentionElement::MentionElement(const QString &displayName,
|
||||
QString loginName_,
|
||||
MessageColor fallbackColor_,
|
||||
QColor userColor_);
|
||||
|
||||
void MentionElement::addToContainer(MessageLayoutContainer &container,
|
||||
const MessageLayoutContext &ctx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user