Fix anonymous Twitch user ping (#2352)

This commit is contained in:
pajlada
2021-01-10 15:22:00 +01:00
committed by GitHub
parent acbabd2664
commit a6e23e2468
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -257,7 +257,8 @@ void SharedMessageBuilder::parseHighlights()
std::vector<HighlightPhrase> activeHighlights =
getSettings()->highlightedMessages.cloneVector();
if (getSettings()->enableSelfHighlight && currentUsername.size() > 0)
if (!currentUser->isAnon() && getSettings()->enableSelfHighlight &&
currentUsername.size() > 0)
{
HighlightPhrase selfHighlight(
currentUsername, getSettings()->showSelfHighlightInMentions,