Don't apply expired filters
This commit is contained in:
parent
97c7104dbc
commit
b28f616e85
|
@ -69,7 +69,7 @@ class Filterer {
|
||||||
|
|
||||||
matchers = []
|
matchers = []
|
||||||
filterObservers = []
|
filterObservers = []
|
||||||
for filter in filters where filter.contexts.contains(context) {
|
for filter in filters where (filter.expiresAt == nil || filter.expiresAt! > Date()) && filter.contexts.contains(context) {
|
||||||
guard let matcher = filter.createMatcher() else {
|
guard let matcher = filter.createMatcher() else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue