diff --git a/Riot/Managers/PushNotification/PushNotificationService.m b/Riot/Managers/PushNotification/PushNotificationService.m index 824a68333..5058b1e16 100644 --- a/Riot/Managers/PushNotification/PushNotificationService.m +++ b/Riot/Managers/PushNotification/PushNotificationService.m @@ -305,7 +305,7 @@ Matrix session observer used to detect new opened sessions. NSLog(@"[PushNotificationService] launchBackgroundSync"); MXWeakify(self); - [account backgroundSync:20000 success:^(MXSyncResponse *syncResponse) { + [account backgroundSync:20000 success:^{ // Sanity check MXStrongifyAndReturnIfNil(self);