mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #1326 from CommName/MentionsFix
[Bug fix] Highlights in /mentions
This commit is contained in:
commit
038fdd5446
1 changed files with 5 additions and 0 deletions
|
@ -582,6 +582,11 @@ void ChannelView::setChannel(ChannelPtr channel)
|
||||||
this->lastMessageHasAlternateBackground_ =
|
this->lastMessageHasAlternateBackground_ =
|
||||||
!this->lastMessageHasAlternateBackground_;
|
!this->lastMessageHasAlternateBackground_;
|
||||||
|
|
||||||
|
if (channel->shouldIgnoreHighlights())
|
||||||
|
{
|
||||||
|
messageLayout->flags.set(MessageLayoutFlag::IgnoreHighlights);
|
||||||
|
}
|
||||||
|
|
||||||
this->messages_.pushBack(MessageLayoutPtr(messageLayout), deleted);
|
this->messages_.pushBack(MessageLayoutPtr(messageLayout), deleted);
|
||||||
this->scrollBar_->addHighlight(snapshot[i]->getScrollBarHighlight());
|
this->scrollBar_->addHighlight(snapshot[i]->getScrollBarHighlight());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue