do not higlight tabs that are marked as not highlight for new messages

This commit is contained in:
unknown 2024-10-22 10:04:35 +02:00
parent 9b31f61de6
commit e5e5a79645

View file

@ -568,6 +568,12 @@ void NotebookTab::updateHighlightState(HighlightState newHighlightStyle,
return; return;
} }
if (!this->highlightEnabled_ &&
newHighlightStyle == HighlightState::NewMessage)
{
return;
}
// message is highlighting unvisible tab // message is highlighting unvisible tab
auto underlyingChannel = channelViewSource.underlyingChannel(); auto underlyingChannel = channelViewSource.underlyingChannel();
@ -603,12 +609,6 @@ void NotebookTab::updateHighlightState(HighlightState newHighlightStyle,
break; break;
} }
if (!this->highlightEnabled_ &&
newHighlightStyle == HighlightState::NewMessage)
{
return;
}
if (this->highlightState_ == newHighlightStyle || if (this->highlightState_ == newHighlightStyle ||
this->highlightState_ == HighlightState::Highlighted) this->highlightState_ == HighlightState::Highlighted)
{ {