Compare commits

...

2 commits

Author SHA1 Message Date
mauke
4c33d10e19
Merge d299f7af5c into 048af42780 2024-10-03 14:55:02 -04:00
Lukas Mai
d299f7af5c Search users' names in addition to their messages 2023-02-09 18:23:54 +01:00

View file

@ -238,9 +238,11 @@ TimelineFilter::filterAcceptsRow(int source_row, const QModelIndex &) const
if (auto s = sourceModel()) { if (auto s = sourceModel()) {
auto idx = s->index(source_row, 0); auto idx = s->index(source_row, 0);
if (!contentFilter.isEmpty() && !s->data(idx, TimelineModel::Body) if (
.toString() !contentFilter.isEmpty()
.contains(contentFilter, Qt::CaseInsensitive)) { && !s->data(idx, TimelineModel::Body).toString().contains(contentFilter, Qt::CaseInsensitive)
&& !s->data(idx, TimelineModel::UserName).toString().contains(contentFilter, Qt::CaseInsensitive)
) {
return false; return false;
} }