fix: dismiss global notification even if disabled
This commit is contained in:
@@ -46,10 +46,10 @@ static NotificationType notifyType;
|
|||||||
|
|
||||||
/// Set (or update) global "X unread articles"
|
/// Set (or update) global "X unread articles"
|
||||||
+ (void)setGlobalCount:(NSInteger)newCount previousCount:(NSInteger)oldCount {
|
+ (void)setGlobalCount:(NSInteger)newCount previousCount:(NSInteger)oldCount {
|
||||||
|
if (newCount > 0) {
|
||||||
if (notifyType != NotificationTypeGlobal) {
|
if (notifyType != NotificationTypeGlobal) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (newCount > 0) {
|
|
||||||
// TODO: how to handle global count updates?
|
// TODO: how to handle global count updates?
|
||||||
// ignore and keep old count until 0?
|
// ignore and keep old count until 0?
|
||||||
// or update count and show a new notification banner?
|
// or update count and show a new notification banner?
|
||||||
|
|||||||
Reference in New Issue
Block a user