diff --git a/Riot/AppDelegate.m b/Riot/AppDelegate.m index c79c852726..38135e7583 100644 --- a/Riot/AppDelegate.m +++ b/Riot/AppDelegate.m @@ -1501,15 +1501,8 @@ - (void)handleLocalNotificationsForAccount:(MXKAccount*)account MXEvent *event; // Ignore event already notified to the user - if (@available(iOS 10, *)) - { - if ([self displayedNotificationRequestForEvent:eventId andUser:account.mxCredentials.userId type:nil]) - { - NSLog(@"[AppDelegate][Push] handleLocalNotificationsForAccount: Skip event already displayed in a notification. Event id: %@", eventId); - continue; - } - } - else if ([self displayedLocalNotificationForEvent:eventId andUser:account.mxCredentials.userId type:nil]) + // only necessary on iOS 9, iOS 10 will just overwrite notifications with identical IDs + if (!@available(iOS 10, *) && [self displayedLocalNotificationForEvent:eventId andUser:account.mxCredentials.userId type:nil]) { NSLog(@"[AppDelegate][Push] handleLocalNotificationsForAccount: Skip event already displayed in a notification. Event id: %@", eventId); continue;