fix: correctly override user color in sub gifts (#6322)

This commit is contained in:
pajlada
2025-07-06 15:05:28 +02:00
committed by GitHub
parent f2d7e4d073
commit 7f2168a9d4
14 changed files with 410 additions and 12 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ size_t ChannelChatters::colorsSize() const
return size;
}
const QColor ChannelChatters::getUserColor(const QString &user)
QColor ChannelChatters::getUserColor(const QString &user) const
{
const auto chatterColors = this->chatterColors_.access();
+1 -1
View File
@@ -24,7 +24,7 @@ public:
void addRecentChatter(const QString &user);
void addJoinedUser(const QString &user, bool isMod, bool isBroadcaster);
void addPartedUser(const QString &user, bool isMod, bool isBroadcaster);
const QColor getUserColor(const QString &user);
QColor getUserColor(const QString &user) const;
void setUserColor(const QString &user, const QColor &color);
void updateOnlineChatters(const std::unordered_set<QString> &usernames);