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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user