From 239403e75c55bbd89b28c8c9b8a7240c7d4f6a11 Mon Sep 17 00:00:00 2001 From: tigerenwork Date: Sun, 5 Jul 2026 20:31:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=87=E6=BB=A4=E5=B7=B2=E5=85=B3?= =?UTF-8?q?=E9=97=AD/=E5=B7=B2=E8=A7=A3=E5=86=B3=20bug=20=E7=9A=84?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Services/NotificationService.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/Services/NotificationService.swift b/Sources/Services/NotificationService.swift index 0043369..edd1105 100644 --- a/Sources/Services/NotificationService.swift +++ b/Sources/Services/NotificationService.swift @@ -24,7 +24,11 @@ final class NotificationService: NSObject, UNUserNotificationCenterDelegate { guard isAuthorized else { return } let significant = changes - .filter { $0.type == .newBug || $0.type == .priorityChanged } + .filter { change in + guard change.type == .newBug || change.type == .priorityChanged else { return false } + // Skip activity toasts for bugs that are already done. + return change.bug.status != .resolved && change.bug.status != .closed + } .prefix(3) for change in significant {