Fix anonymous users being pinged by justinfan64537 (#4698)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2023-06-20 19:42:29 +02:00
committed by GitHub
parent 53b044c476
commit 5d3e5d9312
3 changed files with 70 additions and 21 deletions
@@ -186,7 +186,8 @@ void rebuildMessageHighlights(Settings &settings,
auto currentUser = getIApp()->getAccounts()->twitch.getCurrent();
QString currentUsername = currentUser->getUserName();
if (settings.enableSelfHighlight && !currentUsername.isEmpty())
if (settings.enableSelfHighlight && !currentUsername.isEmpty() &&
!currentUser->isAnon())
{
HighlightPhrase highlight(
currentUsername, settings.showSelfHighlightInMentions,