Merge pull request #1326 from CommName/MentionsFix

[Bug fix] Highlights in /mentions
This commit is contained in:
pajlada 2019-09-22 10:43:13 +02:00 committed by GitHub
commit 038fdd5446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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