From 89f90ddb11607139a8ce59abe6c259ce9472f1ce Mon Sep 17 00:00:00 2001 From: relikd Date: Sun, 26 Oct 2025 20:33:54 +0100 Subject: [PATCH] fix: dismiss global notification even if disabled --- baRSS/Notifications/NotifyEndpoint.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/baRSS/Notifications/NotifyEndpoint.m b/baRSS/Notifications/NotifyEndpoint.m index 1a14ed9..918cce2 100644 --- a/baRSS/Notifications/NotifyEndpoint.m +++ b/baRSS/Notifications/NotifyEndpoint.m @@ -46,10 +46,10 @@ static NotificationType notifyType; /// Set (or update) global "X unread articles" + (void)setGlobalCount:(NSInteger)newCount previousCount:(NSInteger)oldCount { - if (notifyType != NotificationTypeGlobal) { - return; - } if (newCount > 0) { + if (notifyType != NotificationTypeGlobal) { + return; + } // TODO: how to handle global count updates? // ignore and keep old count until 0? // or update count and show a new notification banner?