Fix channel-based popups rewriting messages to file log (#4060)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
xel86
2022-10-16 06:28:22 -04:00
committed by GitHub
parent 4152f0dccb
commit e8fd49aadb
4 changed files with 26 additions and 5 deletions
+6 -1
View File
@@ -46,7 +46,12 @@ ChannelPtr SearchPopup::filter(const QString &text, const QString &channelName,
// If all predicates match, add the message to the channel
if (accept)
channel->addMessage(message);
{
auto overrideFlags = boost::optional<MessageFlags>(message->flags);
overrideFlags->set(MessageFlag::DoNotLog);
channel->addMessage(message, overrideFlags);
}
}
return channel;