From 5078ecbef1ff86cb7553c514452950d8bca79fb1 Mon Sep 17 00:00:00 2001 From: CommName Date: Sat, 21 Sep 2019 22:19:03 +0200 Subject: [PATCH] Highlight bug fix --- src/widgets/helper/ChannelView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index d9dc36a64..d80376a7b 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -582,6 +582,11 @@ void ChannelView::setChannel(ChannelPtr channel) this->lastMessageHasAlternateBackground_ = !this->lastMessageHasAlternateBackground_; + if (channel->shouldIgnoreHighlights()) + { + messageLayout->flags.set(MessageLayoutFlag::IgnoreHighlights); + } + this->messages_.pushBack(MessageLayoutPtr(messageLayout), deleted); this->scrollBar_->addHighlight(snapshot[i]->getScrollBarHighlight()); }