Fix filter crash introduced in #3092 (#3110)

This commit is contained in:
pajlada
2021-08-03 09:39:27 +02:00
committed by GitHub
parent 784fdd28b2
commit 95044efeed
7 changed files with 17 additions and 22 deletions
+1 -1
View File
@@ -754,7 +754,7 @@ bool ChannelView::shouldIncludeMessage(const MessagePtr &m) const
m->loginName, Qt::CaseInsensitive) == 0)
return true;
return this->channelFilters_->filter(m);
return this->channelFilters_->filter(m, this->channel_);
}
return true;
+1 -1
View File
@@ -44,7 +44,7 @@ ChannelPtr SearchPopup::filter(const QString &text, const QString &channelName,
}
if (accept && filterSet)
accept = filterSet->filter(message);
accept = filterSet->filter(message, channel);
// If all predicates match, add the message to the channel
if (accept)