fix: dismiss global notification even if disabled

This commit is contained in:
relikd
2025-10-26 20:33:54 +01:00
parent 0b6a338fa3
commit 89f90ddb11

View File

@@ -46,10 +46,10 @@ static NotificationType notifyType;
/// Set (or update) global "X unread articles"
+ (void)setGlobalCount:(NSInteger)newCount previousCount:(NSInteger)oldCount {
if (newCount > 0) {
if (notifyType != NotificationTypeGlobal) {
return;
}
if (newCount > 0) {
// TODO: how to handle global count updates?
// ignore and keep old count until 0?
// or update count and show a new notification banner?