Copy message flags to preserve highlights (#2090)

This commit is contained in:
Daniel 2020-10-21 10:27:24 -04:00 committed by GitHub
parent 3c6e6446c6
commit e7c2e1bec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -594,7 +594,8 @@ void ChannelView::setChannel(ChannelPtr underlyingChannel)
}
else
{
overridingFlags = MessageFlags(MessageFlag::DoNotLog);
overridingFlags = message->flags;
overridingFlags.get().set(MessageFlag::DoNotLog);
}
this->channel_->addMessage(message, overridingFlags);