Allow non-message phrases to be highlighted by self (#3835)

* All non-phrase highlights can now trigger on messages from self

New state:
Allows self highlights: Subscription, Whisper, User, Badge
Does not allow self highlights: Message

* Add changelog entry

* fix PR number in changelog
This commit is contained in:
pajlada
2022-06-26 12:43:34 +02:00
committed by GitHub
parent 881986d86f
commit 8bdfbf7b87
5 changed files with 68 additions and 26 deletions
-7
View File
@@ -147,13 +147,6 @@ void SharedMessageBuilder::parseHighlights()
return;
}
auto currentUser = getIApp()->getAccounts()->twitch.getCurrent();
if (this->ircMessage->nick() == currentUser->getUserName())
{
// Do nothing. We ignore any potential highlights from the logged in user
return;
}
auto badges = SharedMessageBuilder::parseBadgeTag(this->tags);
auto [highlighted, highlightResult] = getIApp()->getHighlights()->check(
this->args, badges, this->ircMessage->nick(), this->originalMessage_);