diff --git a/Riot/AppDelegate.m b/Riot/AppDelegate.m index ee03218135..a9d651a710 100644 --- a/Riot/AppDelegate.m +++ b/Riot/AppDelegate.m @@ -1261,9 +1261,9 @@ - (void)handleLocalNotificationsForAccount:(MXKAccount*)account MXEvent *event; // Ignore event already notified to the user - if ([self displayedLimitedLocalNotificationForEvent:eventId andUser:account.mxCredentials.userId]) + if ([self displayedLocalNotificationForEvent:eventId andUser:account.mxCredentials.userId type:nil]) { - NSLog(@"[AppDelegate][Push] handleLocalNotificationsForAccount: Skip event already displayed in a failed sync notif. Event id: %@", eventId); + NSLog(@"[AppDelegate][Push] handleLocalNotificationsForAccount: Skip event already displayed in a notification. Event id: %@", eventId); continue; } @@ -1332,6 +1332,7 @@ - (void)handleLocalNotificationsForAccount:(MXKAccount*)account UILocalNotification *eventNotification = [[UILocalNotification alloc] init]; eventNotification.alertBody = notificationBody; eventNotification.userInfo = @{ + @"type": @"full", @"room_id": event.roomId, @"event_id": event.eventId, @"user_id": account.mxCredentials.userId @@ -1501,15 +1502,16 @@ - (void)handleLimitedLocalNotifications:(MXSession*)mxSession events:(NSArray