Highlight bug fix

This commit is contained in:
CommName 2019-09-21 22:19:03 +02:00
parent 88d8bf7cec
commit 5078ecbef1

View file

@ -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());
} }