mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add a local filter for RSS
This commit is contained in:
parent
2a1336089d
commit
99406401cc
1 changed files with 5 additions and 0 deletions
|
|
@ -157,6 +157,11 @@ public struct InternalFilter: Encodable, Identifiable, Hashable, Equatable {
|
|||
)
|
||||
|
||||
switch name {
|
||||
case "RSS":
|
||||
let feedLabelPredicate = NSPredicate(
|
||||
format: "SUBQUERY(labels, $label, $label.name == \"RSS\").@count > 0"
|
||||
)
|
||||
return NSCompoundPredicate(andPredicateWithSubpredicates: [notInArchivePredicate, undeletedPredicate, feedLabelPredicate])
|
||||
case "Inbox":
|
||||
// non-archived items
|
||||
return NSCompoundPredicate(andPredicateWithSubpredicates: [undeletedPredicate, notInArchivePredicate])
|
||||
|
|
|
|||
Loading…
Reference in a new issue