From b28f616e8511d5214de7a29f411aa69e795dc4dd Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 4 Dec 2022 11:55:46 -0500 Subject: [PATCH] Don't apply expired filters --- Tusker/Filterer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Filterer.swift b/Tusker/Filterer.swift index e715bbdc09..2486bead27 100644 --- a/Tusker/Filterer.swift +++ b/Tusker/Filterer.swift @@ -69,7 +69,7 @@ class Filterer { matchers = [] 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 { continue }