mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix subscription messages triggering split highlights (#1519)
Since #1320, subscription messages are treated as highlights in order to allow customization. This caused subscription messages to highlight the split(s) the message was received in. This is not intended behavior. This commit fixes the issue by additionally checking if the `Subscription` flag is set on a highlighted message.
This commit is contained in:
parent
a078d116d2
commit
93a6c55ed3
|
@ -648,7 +648,8 @@ void ChannelView::messageAppended(MessagePtr &message,
|
|||
|
||||
if (!messageFlags->has(MessageFlag::DoNotTriggerNotification))
|
||||
{
|
||||
if (messageFlags->has(MessageFlag::Highlighted))
|
||||
if (messageFlags->has(MessageFlag::Highlighted) &&
|
||||
!messageFlags->has(MessageFlag::Subscription))
|
||||
{
|
||||
this->tabHighlightRequested.invoke(HighlightState::Highlighted);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue