Fix crash when receiving whisper (#2298)
PR #2284 introduced this bug: whispers aren't linked to a twitch channel but we're storing user colors in a twitch channel. So, dereferencing a nullptr. Not good.
This commit is contained in:
@@ -72,7 +72,7 @@ void ChannelChatters::setChatters(UsernameSet &&set)
|
||||
|
||||
const QColor ChannelChatters::getUserColor(const QString &user)
|
||||
{
|
||||
const auto chatterColors = this->chatterColors_.access();
|
||||
const auto chatterColors = this->chatterColors_.accessConst();
|
||||
|
||||
const auto search = chatterColors->find(user.toLower());
|
||||
if (search == chatterColors->end())
|
||||
|
||||
Reference in New Issue
Block a user