Commit e936d0e0 by Sebastián Katzer

Missing negation causes cancel of repeating notifications after 5 days

parent 51fdb295
......@@ -486,7 +486,7 @@
}
/**
* Cancels all local notification with are older then
* Cancels all non-repeating local notification older then
* a specific amount of seconds
*/
- (void) cancelAllNotificationsWhichAreOlderThen:(float)seconds
......@@ -497,7 +497,7 @@
for (UILocalNotification* notification in notifications)
{
if (notification && [notification isRepeating]
if (notification && ![notification isRepeating]
&& notification.timeIntervalSinceFireDate > seconds)
{
[self.app cancelLocalNotification:notification];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment